this post was submitted on 02 Mar 2024
525 points (94.0% liked)
Programmer Humor
19817 readers
93 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Nice troll
JavaScript has a lot of the same issues as PHP. It doesn't have some of the same core library issues because it doesn't have a good core library.
Sure, but it still lacks basic built-in features. For example, why do maps and sets not have sort or filter methods? In Node, why is there no built-in way to connect to a database of any sort? Why can Node.js apps only use a single time zone? Requiring libraries for everything is not ideal as the libraries vary wildly in quality and they can end up either abandoned or containing malware (which has happened several times in the Node ecosystem).
They each have their pros and cons, depending on use case. Node.js does some things better than PHP, but the opposite is true too.
lol I don't use PHP any more... I primarily use C#. I can still see the advantages of PHP without it being a language I use day-to-day.
Do you have any data that proves otherwise? Because all available data I've seen disagrees with you.
https://wordpress.org/40-percent-of-web/
https://w3techs.com/technologies/details/cm-wordpress
It's not just small sites. A bunch of major publications use WordPress too. Forbes and TechCrunch both use WordPress for example.
also downvotes aren't supposed to be used just because you disagree with someone's opinion. Your comments seem like a typical redditor so please just go back to Reddit if you're going to use downvotes that way.
Adding a third-party library in PHP is just as easy. The
composer.json
file looks very similar to apackage.json
.