Because at some point you see the abstraction not the syntax.
I.e. being able to understand how a closure or a promise is implemented, then understanding what syntactic sugar like anonymous functions and async-await actually do.
Under the hood most of it actually is the same. What’s special about different languages are the few things that are actually different. And that’s usually all about how they choose to represent the same underlying concept rather than something unique to that language.
In my programming languages class we learned one a week, in different categories, like we would learn a functional one week, a scripting language the next week, a reflective language the next week, etc.
There are strengths and weaknesses to all languages, but when you reach nirvana you realize that they're all the same at the end of the day.
/jk. I'm implying twelve different systems based on different languages, but I don't know twelve languages to even be dangerous. Maybe 6? but php is definitely one of them. Java, JS, go, php, python, technically pascal, enough c++ to be dumb enough to think about trying and smart enough to stop myself. and the idea of assembly.
The point is all programming languages are relatively the same, better for something’s than others, to be a good polyglot you need to ignore the idea of languages and realize what are my thoughts and what do I need to do to make x work. You can know 100 languages or 1 but being able to think is more important than the numbers
This. The syntax and even the language paradigm should not really be much of an obstacle once you get going. The library ecosystem on the other hand might be an obstacle, and language performance can be a blocker for some tasks
Sure, it compiles but your code also appends a list at the end of a loop and then empties it at the beginning. It's good code in the sense that it does in fact work, it just doesn't do what you want it to do.
The ability to write a program that does something measurably faster, smaller or more reliably is the real skill and that's largely language independent.
You should at least get very good at one. Then the others feel much easier, and if they share the same paradigm, it's really the same ideas and design patterns. For example, a while ago I was trying to write binary data using Python. I didn't really understand much of that, but I did know how to do that easily using C. Even back then it was rather easy to find resources on the internet in order to "translate" the logic. Now with AI it's even easier.
Oh absolutely, my university just has us learning a variety lol, but I'm working mostly on C outside of class for projects, team work, and whatnot since I want to work primarily in embedded. I still struggle on translating between OOP and non-OOP but it's a work in progress
I can't relate. I feel like pretty much everything that I have learned carries over to every language, the only annoying thing to learn is language specific stuff like the syntax, best practices, the stdlib, the build system, etc... but generally speaking, a good language will have a way to pick all that up really quickly.
View all comments
488
u/AsaKeyholderUK 4d ago
yeah being a polyglot is mostly just being mediocre in more places. I know enough rust to be dangerous and enough js to be sorry