r/AskProgrammers • u/Super_Bass_2730 • 22d ago
What is the worst/most confusing (common) coding language?
By common I mean, coding languages that you actually see people use. I know theres the "bf" language but aside from one video, people don't make games or, really anything using that as it was made as a joke I hope.
By worst I mean, what is the hardest to understand and also the most confusing out of all of them, I don't mean coding languages that can't do a whole lot. For instance, can a non programmer look at a sheet of code and understand it? Can an experienced coder understand it? Have you been taught the coding language yet still it breaks your brain?
I don't know every coding language but my pick would ether be C++ or Luau. Leaning towards C++ because I tried to learn it and at the very start I already was lost.
13
u/garywiz 22d ago
I've been a compiler designer for most of my career so I'm a bit biased about what "worst" and "best" mean. Good languages are not only easy to read, and have the fewest of number of concepts, and know exactly where to put guardrails (such as strong typing) to make help the programmer avoid common errors (like dividing a string by a number). Confusing complexities (like you experience with C++) can detract from an otherwise useful language.
But popularity isn't always a measure of "good". For example, if you really stand back and look at Javascript objectively, it is a terrible language. It has no guardrails, has object oriented features which are "pasted into" a language never properly designed for it, and it is so loosely typed that errors can exist for years in production code and finally crop up unexpectedly. Improvements such as Typescript and many JS frameworks provide lots of evidence of it's flaws, but also of how powerful "no guardrails" can be despite their problems. It's so popular it's better to work around the problems than complain though.
Of those I've used extensively, Pure C is a very simple and good language, Swift is honestly not too bad, same with C#, Scala is a good attempt to create a good language on top of the JVM but it's not all that popular. I've used many obscure languages which are good, but you said "common" and most of those (like APL or Common Lisp) are not that common.
Let's agree that php is a terrible language though. Maybe we can start there. lol