Programing is always fun! Even with AI: My conversation with ChatGPT in 19 different programing languages! Comparative analysis, and future predictions.
--
So I did a little conversational experiment with ChatGPT and a list of 19 popular programming languages (yes, I forgot Perl, use to program in that one too). SQL and IBM Assembly are special cases, of course.
This is the conversation with link:
About the conversation
Basically, I asked it to program a simple “Hello World” in each language.
That should have been simple because there are so many of these examples out there on the internet, and most likely in its training dataset.
I told it to modify the programs slowly until it created a basic report with each language code. A simple program of course. You could do the same and possibly get similar results.
Finally, I asked it to analize what was the most simple to understand (in my spoken language English), efficient to run, and shortest lines of code compared in a final report. Looks like Python wins on many of the criteria. And since Python is used extensively in AI, it looks like the next language I really must learn.
Where do we go from here? And my analysis:
I kept it very simple, because I didn’t want it to begin hallucinating on me. LOL.
I didn’t check all the code to see if it would run, but I did desk check the languages that I understand, and it appears they would run error free inside their respective environments.
I also did not compare more modern languages to the older languages I know, such as COBOL, Fortran, Pascal, original BASIC , etc. That might have been intersting to some of us older coders, and yes, I’ve been around a while. I’ve seen a lot of changes, and hopfully I’ll see even more!
Is human programming dead?
Let’s fast forward to the future. Will programmers be replaced by well trained AI? Most likely at some point, would be my educated guess (given my life experience of over 40 years of coding and computers), which differs from others worried about their jobs. Should you change majors, definitely not!
Do what you always love, and you’ll be much happier with that chip in your brain.
P.S. Programing as human is always fun! Yes, I spelled it with “one m”, the new way that is . . . just because I can, and its syntax will still compile just fine in the English language. <smile>
Your homework assignment, if you so choose, you coder you
This was a fun exercise and I enjoyed writing this article. If you would like to play around with this approach to create more complex examples in various different coding languges, I think you might have fun seeing the different coding syntax in languages you don’t know, etc. Enjoy, and please clap up this article. Thanks so much!