|
ChatGPT
I’ve used ChatGPT (3.5) numerous times
It has written a few bash scripts for me & done a nice job
But for the most part it has just been passable, nothing special.
Copilot
I had not used copilot until just a few minutes ago.
I needed some info on a Arduino / ESP32 BLE (Bluetooth Low Energy) method pAdvertising->setMinPreferred(0x06);
Since I’ve switched to running MS Edge on all my devices and since copilot is built in I decided to ask it about the method (on my iPad).
Copilot gave me such a detailed, thoughtful and well-written answer I instantly thought “hmm…maybe I will never ask a question on SO again.”
copilot answer: The line of code pAdvertising->setMinPreferred(0x06); sets the minimum preferred connection interval for Bluetooth Low Energy (BLE) advertising. Let me explain further:
Connection Interval:
The connection interval is the time between two consecutive data exchanges (connection events) between a BLE peripheral (like an ESP32) and a central device (such as a smartphone).
It determines how often the devices communicate during an active connection.
Preferred Connection Interval:
The preferred connection interval is a range (in milliseconds) that the peripheral suggests to the central device.
It indicates the desired frequency of communication.
In this case, 0x06 corresponds to a connection interval of approximately 7.5 ms (hex value multiplied by 1.25 ms).
Why Set Preferred Connection Interval?:
Setting the preferred connection interval can help improve communication efficiency.
Some devices (like iPhones) may ignore this suggestion, but it’s still good practice to set it.
Additional Notes:
The pAdvertising->setMinPreferred(0x06); line is often used in ESP32 code to enhance compatibility with iOS devices.
You might also see pAdvertising->setMaxPreferred(0x12); to set the maximum preferred connection interval1.
Remember that the actual connection interval negotiated during the connection setup may differ based on the central device’s capabilities and the peripheral’s suggestions. 😊
1. Yes it included the smiley and I liked that “personal” touch.
2. If you search the Web and SO and even the official arduino site you will not find this documented so Copilot is amazing.
3. With AI like this, who needs SO.
|
|
|
|
|
This must mean MS has painstakingly kept all MS forums out of their LLM seeding.
|
|
|
|
|
|
Very interesting. To me "talking" with ChatGPT feels like talking to a machine.
Copilot seemed much more "human". Of course mine was just a documentation question and not a pure "write me some code" challenge, so that may be the difference.
|
|
|
|
|
A coding test is different from providing documentation.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
raddevus wrote: With AI like this, who needs SO
With SO selling its users' answers to AI companies[^], nobody will need SO.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Have you utilized perplexity.
|
|
|
|
|
Probably not yet, since this is just a basic question. However, I really couldn't find documentation on this particular item and Copilot did a great job of providing context and explaining it clearly.
We will see how it does on perplex questions in the future.
|
|
|
|
|
raddevus wrote: 3. With AI like this, who needs SOdevelopers. FTFY.
|
|
|
|
|
Richard MacCutchan wrote: 3. With AI like this, who needs SOdevelopers. FTFY. The ones wanting someone to clean up the mess.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I've had nice experiences with Copilot. Wanted a customized animation timer for Powerpoint, and Copilot gave its VBA code in a trice. Works like a charm.
|
|
|
|
|
raddevus I have used this site Code Generator - CodePal[^]
I know nothing about programming and Arduino but posted this
ESP32 BLE (Bluetooth Low Energy) method pAdvertising->setMinPreferred(0x06);
as the question under Arduino
The response it gave me is meaningless to me but the response had a explain this code
BUTTON I did not click it. I would post the code here but I feel that is a violation of
the guidelines for interacting in the lounge.
If you find the time to test "codepal.ai" and post impressions great
If not I understand completely
Thanks for sharing your impressions of various AI sites
|
|
|
|
|
The IT segment catering to the latter of the subject, is the ERP segment.
Businesses still continued before computers, based on paper, file based manual systems. This comprise a host of activities like invoicing, physical stock,...etc.
A typical invoicing program would be in the range of several thousand lines of code, resulting in not less than around 10 man days.
Well that is the time it takes to INSTRUCT THE COMPUTER
to carry out the invoicing activity.
How long will it take to train a human to carry out the task of invoicing? Well if that human is smart, may be an hour or less. But let's say that it be one day(8 to 5).
So we are saying that we coders are dumb!!!! We are taking 10 times the time to code than the time to train!!!! How can that be?
Well, a human has a mind which can be trained. Well give the machine a mind. Real Mind, not AM(Artificial Mind).
|
|
|
|
|
Amitava_Guha wrote: So we are saying that we coders are dumb!!!! We are taking 10 times the time to code than the time to train!!!! How can that be?
No, we coders are extremely clever. We can take a mindless machine and train it to perform tasks that used to require a mind!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
The human creating the invoices by hand will do so slowly and make random variable mistakes.
The computer creating the invoices will do so very quickly and make very precise mistakes.
>64
It’s weird being the same age as old people. Live every day like it is your last; one day, it will be.
|
|
|
|
|
To err is human, to really mess up requires a computer.
|
|
|
|
|
PIEBALDconsult wrote: to really mess up requires a computer team of software engineers
FTFY
|
|
|
|
|
Amitava_Guha wrote: So we are saying that we coders are dumb!!!! We are taking 10 times the time to code than the time to train!!!!
Look at the coding time as training time.
Computers are so dumb, they require that much more precise instructions be prepared for them to perform the task.
|
|
|
|
|
Amitava_Guha wrote: Well that is the time it takes to INSTRUCT THE COMPUTER
No that is not true. No more so than saying that a light switch powers the light bulb.
Amitava_Guha wrote: Well if that human is smart, may be an hour or less. But let's say that it be one day(8 to 5).
I can't speak to invoicing but at least at one time it took 4 years at a university and a very difficult test which it was expected and norm that it would take at least two times to pass the test to become a CPA.
But I haven't seen any computers showing up at a zoo one month to do an audit of the books and then the next month showing up to do a forensic audit on a bankrupt company.
In the same way that a power drills are nice on a construction site but just like a manual drill they don't do anything unless a human uses it.
Amitava_Guha wrote: Well give the machine a mind.
They have been trying to do that since the 1950s with computers. And they were trying to do it in other ways before that.
|
|
|
|
|
Oh this is priceless. So my primary American customer has spent 6 figures or more putting hi-res flat screens all over the factory floor to show all the workers their productivity, etc. The best part, they are all so busy working their a$$es off, I've not seen one time where they look up.
So, I'm in Mexico with another customer. I ask them about their current production deliverables. Just curious, wondering how orders are going, small chit chat. They take me to a LARGE whiteboard with an electrical tape grid. They just update it daily with a whiteboard marker. At the end of the month, they take a cell phone picture and erase it. Sometimes we over think things.
How does everyone share info? 4 times a week, the factory and offices empty for lunch. Everyone has brought food from home. We're looking at a Mexican buffet for 90 minutes. Best office meeting ever.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
but wait, it gets better
So customer #2 is only 5 months late in paying invoices. So late that my support from the primary vendor not only lapsed, they said "no more support until $$." Now this stalled a project they really want to complete, so time to actually do their jobs. Technically it's all "computerized." Purchasing just forgot to tell us 3rd parties how to bill them with their new system which (a) they didn't tell us about and (b) never responded to our emails, quotes, invoices, etc.
This is why most small and medium sized businesses are nimbler than these huge corporations. Look at MS. As much as really experienced users $itch about this and that, they make it extremely difficult to process real customer feedback.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Just sharing, rated "lounge SAFE " (MY opinion )
This rant contains no programming or instructions.
..if I want your opinion, I'll ask for it - more true today
...that and a dime will get you cup of coffee - monetary obsolete
.. here is a dime, call somebody who cares.. technologically obsoleted , he refered to payphone
|
|
|
|
|
If my boss was saying that kind of thing to me I'd read it as "change your attitude" and I would.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
If my boss had said that to me I would tell him to take that dime and stick it where the sun don't shine.
If you can't find time to do it right the first time, how are you going to find time to do it again?
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
Mike, Mike, Mike. You forgot an essential part of your response.
I would tell him to take that dime, fold it until it's all sharp corners, and stick it where the sun don't shine.
Software Zen: delete this;
|
|
|
|