HACKER Q&A
📣 andrewstuart

What programming languages is ChatGPT "best at"?


Meaning it is able to write and revise and troubleshoot large chunks of code and the results are close to being working.

Of course, the answer is "it depends", but I am interested to hear opinions.


  👤 Lerc Accepted Answer ✓
I don't have a definitive answer to this but there are candidates for a variety of reasons

Python, A lot of AI is done in python, this means in general it has received more focus. This is kind of an example of the biases of AI producers being reflected in a relatively benign manner.

JavaScript by far has the most content available online that will have been used in training.

Consistency in expression would benefit a language, maybe this is an advantage for something like Rust?

I'm not sure about languages like Pascal, in some senses you would think the single pass would help but also declaring things before they are needed is a common issue. Even python suffere from the missing import problem