by fraktl · 5y ago · 0 comments
Honestly, after having used most of the languages at my disposal for past 22 years I've been doing this job - they were nothing special compared to PHP (or PHP compared to others).
You still have to figure the problem out before solving it with algorithms. No language or framework will help you do that.
I'm keen to hear why there are comments that demean one tool and elevate the other, when in reality - they're all just programming languages.
I agree, I've coded in PHP/Python/Ruby/Perl/Bash for many years. All languages have there own place if you can code!
Spend less time comparing lanuages and actually code something!
My subjective analysis is that each language has a niche that if fills nicely: - C - no BS, no runtime, close to hardware. - C++ - a bit further from the hardware, a bit closer to the developer. - Python - glue the two above with few lines of code. Go-to language for "data pipelines". - NodeJS - one code, can run both in the browser and on the server. Go-to language for web development. - Java - one syntax, runs both on Android and on servers.
- C# and Go - vendor-evangelised languages. Supported by huge vendors and their network of partners. - COBOL - too big to fail :))
I honestly don't get what niche PHP fills. Why would anyone choose PHP over another language? Developer pool? Ecosystem of libraries? Evangelized by a vendor? Front-runner in new concepts? Too big to fail?
PHP offers a development paradigm second to none. Drop a single file into a single directory and hit f5. Problem solved. Next.
Which language above can do that?
My point is that PHP literally only requires a single file to work. No cli commands. No 3rd-party packages. No configuration files. Just PHP.
I am not saying that you are dumb. I am saying that your values clash with my needs. This clash is so strong that I predict that if I again try to program professionally in php and its frameworks, the interaction would again have a disastrous impact on my mental health, my livelihood, and my marriage.
-----------------------------------
Let's suppose you enjoyed baking bread, but someone rejected your work and told you that gluten gives them terrible intestinal pain. You would have a choice:
1. Conclude they're being overdramatic and be offended by their rejection.
2. Believe their self assessment, move on, and continue with your craft.
-----------------------------------
(They would have a similar choice whether or not to come into a threat about baking and yell at people about gluten)
> Let's suppose you enjoyed baking bread, but someone rejected your work and told you that gluten gives them terrible intestinal pain
Both these examples are ones where the problem isn't the tool, rather, the person using it. It's not really PHP (or the bread) being critiqued is it?
----------------
If an RJ45 connector won't fit into a USB-A slot, what is the problem?
A. The RJ45 connector B. The USB-A slot C. The action of trying to fit one to the other
----------------
If a straight man is married to a lesbian and their sex life is terrible, what is the problem?
A. The man B. The woman C. The attempt to force a sexual relationship over a friendship
This is wholly unrelated to the quality of the tool itself or the other practitioners who choose to use it. It is therefore a bit offensive that the conclusion you draw is that developers who use PHP must have a deficit in their ability to work through problems.
The “problems” do not change based on which language is chosen to solve them. That is, if you actually understand the “problems” in the first place...
Don't get me wrong, but you don't seem interested in discussing, you rather appear to want to show how right you are without iota of PHP knowledge.
Since there's no dialogue here and you appear to be yet another code plumber, I'll bid you farewell and I wish you all the best in your career.
> If you're writing a program that only has to do something very simple, like number crunching or bit manipulation, you may as well use a less abstract language, especially since it may be slightly faster.
In your opinion, what percentage of web applications do you think are non-trivial?
And for what it’s worth, nobody chooses PHP because of the language. That’s not the selling point. The selling point is the development paradigm/runtime. It’s dead simple.
I recently started a small web project using the SAFE stack:
https://safe-stack.github.io/docs/quickstart/
I urge you to follow that QuickStart yourself (it only takes a minute or two).
Assuming you were actually able to build the project, now, look at your project structure. How many directories do you have (11)? How many files (15510)? Think about how much knowledge is required to understand what’s going on (if you’ve never touched F# you are probably lost).
What does this QuickStart app do? It is, I kid you not, a “Todo list”!
I could write an almost exact clone of this app using PHP in exactly 1 file. No configuration scripts. No build suite. No 3rd-party packages. No CLI commands. Just 1 PHP file. Thats why people choose PHP.