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.
I see, depends on how you define a difference i guess. That's not something about reaching to nirvana or stuff, you can hear "they are all same" quote from a lot of beginners. So that's making me feel like it's like a memorized thingy. Also most of the time who thinks like that is someone only worked with the languages from same family or writing a lot of anti-patterns that coming from their daily used languages and think that they just learned everything in the new language. You can't say all foods are same just because you chew/drink it and they all go to stomach at the end of the day
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.
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.
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.
I understand but the maturity and quality of tools I used as dev with PHP is years behind other languages. Laravel, which is the de facto standard has some odd choices, especially the entities. Python, C#, Java, even JS looks more mature, I don't think there's a reason choosing PHP nowadays
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!
320
u/AsaKeyholderUK 17h 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
32
u/Arclite83 14h 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.
69
u/Covfefe4lyfe 16h 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.
100
u/Mendiboy 17h ago
PHP really is a garbage language for garbage people
17
u/EarlMarshal 17h 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 12h ago
I can read code from almost any language you put in front of me. Except brainfuck and assembly. No thanks.
3
u/AviaKing 12h ago
At this point give me some docs and I'll get by in anything
5
u/elmanoucko 17h ago
using "speak"... meme provided by the sales team I guess...
2
u/MissinqLink 16h ago
I’ve just been at this too long
2
u/ThatGuyYouMightNo 16h ago
Screw you
1
u/PiccolosPenisPickle 17h ago
u/save_video
-12
u/fredpalas 16h ago edited 16h 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 17h ago
with an agent we're all polyglots >:)