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.
/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.
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.
My first job shipped me a O'Reilly C# book and said "see you in 2 weeks". I've probably learned 20+ different languages since then? At this point the syntax all just blends.
But unless you're talking about some wierd memory allocation or language idiosyncrasies, "data structures 101" applies to pretty much all of it. Call it a hashmap or a dictionary, I don't care, just give me my lookup table.
Thanks to WordPress and legacy, which only happened in the first place, because it was the only/best alternative to raw dogging HTML, CSS and JS at the time. If the language itself was good it would still be actively picked for new developments.
There a quite a few analogous systems that aline with PHP's story. They do share a common thread though in that they're not the best but won out at a particular time and continue due to tech debt and inertia.
you picked the subreddit where most users are not professional programmers (making a living off of it) AND hate AI at the same time. You did this to yourself!
289
u/AsaKeyholderUK 14h 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
22
u/Arclite83 11h ago
My first job shipped me a O'Reilly C# book and said "see you in 2 weeks". I've probably learned 20+ different languages since then? At this point the syntax all just blends.
But unless you're talking about some wierd memory allocation or language idiosyncrasies, "data structures 101" applies to pretty much all of it. Call it a hashmap or a dictionary, I don't care, just give me my lookup table.
62
u/Covfefe4lyfe 13h ago
Mandatory gif as a php dev with 20 YOE. Call it garbage as much as you like, I love writing it and it fills my bank account nicely.
95
u/Mendiboy 14h ago
PHP really is a garbage language for garbage people
16
u/EarlMarshal 14h ago
That's basically me. Everything except php. I also don't use python, but it see it's uses from a high level perspective.
5
u/JimroidZeus 9h ago
I can read code from almost any language you put in front of me. Except brainfuck and assembly. No thanks.
5
u/elmanoucko 13h ago
using "speak"... meme provided by the sales team I guess...
2
u/MissinqLink 13h ago
I’ve just been at this too long
2
u/ThatGuyYouMightNo 13h ago
Screw you
1
u/AviaKing 9h ago
At this point give me some docs and I'll get by in anything
1
u/PiccolosPenisPickle 13h ago
u/save_video
-10
u/fredpalas 13h ago edited 13h ago
They say php garbage but they use Python who it's the worse programming language, maybe they are afraid of Private methods
-21
u/Comfortable_Job8847 14h ago
with an agent we're all polyglots >:)