Just a fun thing I came acros when asking ChatGPT:
“write a python script that logs all flight numbers of aircraft passing over coordinates 52.43362183787448, 4.654246273341764 within a 50km radius and under 10km height to a line divided text file.”
That’s pretty interesting. Since you asked it to write a Python script for finding flights in a certain area, I guess you could ask it to write a script for other tasks related ADS-B flight tracking or even other scripts do do more general things in Linux. Curious to find out how long it took ChatGPT to respond to your request.
Well, the question you asked was pretty specific:
“write a python script that logs all flight numbers of aircraft passing over coordinates 52.43362183787448, 4.654246273341764 within a 50km radius and under 10km height to a line divided text file.”
What if it were more general like:
“write a C program that logs all flight numbers of aircraft passing over a specified location.”
Edit to add:
Apparently StackOverflow has temporarily banned ChatGPT because of the large number of incorrect answers it provides.
Yes and they are right.
People upload untested code directly copied from ChatGPT.
ChatGPT can give some good code basics but everything needs to be checked for errors and tested in a properly setup environment before posting it as code awnsers or solutions.
I’ve used it to write some very simple bash scripts and it’s reasonable. I also asked it to give me some python code I needed for a Pi which controlled both an LED and a relay. Not only did it import all the required libraries but it all told me what gpio pins I should connect the LED and the relay to.
On the whole, it’s not bad but it’s far from perfect. It still needs someone who’s familiar with the language to check things over.
It’s very confident but also apologetic when you point out its mistakes and then it confidently tries again.