Yep, PHP is turning 30 this year! Wondering if “PHP is still relevant?” Ever since we have been hearing that PHP is dead. It was “dead” 10 years ago, 5 years ago, and “is dead” today. But somehow - it isn’t. Anyway… happy birthday!
In PHPs defense, it keeps evolving in positive, meaningful ways. If you are up to date with it, it’s quite sophisticated and enjoyable. Doubly so if you use a framework like Laravel.
Yeah last time I used it was with a laravel monolith and actually it wasn’t that bad.
PHP 8.4 is pretty good, TBH. You absolutely CAN write great code with modern PHP. … Shame that most PHP I touch is legacy code that’s at MOST PHP 7.4 - which is EOL since November '22 and has to be upgraded or replaced. 😬
Most memes or jokes referencing a direct problem in PHP, are old or made by people who haven’t touched the language in a decade(version 7 was in 2015, and it removed/fixed a lot of issues and added needed features).
There’s also the huge looming thing that a lot of programmers forget: Websites like Wikipedia run on PHP, not to mention the amount of WordPress and similar websites are out there. Which means it will keep going strong. And for a while Facebook also used quite a lot of it, to the point where they made a rudimentary compiler instead of rewriting parts in more efficient languanges.
Also, most of the websites are made with WordPress, which… take a guess, yes, it runs on PHP!
(even though WordPress is a bad example because it’s written in a horrible and ancient way)
… or even Symfony.
I’m still confused why laravel is more popular. Symfony is so much nicer to use and maintain
Yeah, if you add tons of extra rules and tools, it can become almost as pleasant as the main Python or Ruby experience.
Almost.
I agree. A lot of people who mock PHP know almost nothing about it but they know they’re supposed to hate it because all the cool kids do.
“What’s the best tool”
“LINUX!!!”
“Weird because I haven’t told you what I’m trying to build yet”
I would have gone with hammer.
Maybe 25 years ago i build my first website for a paying customer ( my dad). I decided to go for php which was new to me at the time.
I figured it would be too risky ( even back then) to have PHP generate dynamic pages so instead I had php generate static html.
So whenever website needed updating , for example a new folder with images was added, you could just load the admin.php and it would generate gallery pages for you.
Would probably still work 25 year later if wasn’t eventually replaced with some WordPress or something
for many websites, this is the ideal way to do it
makes it order of magnitude more secure
And performant. And accessible. And compatible.
php is too mainstream, give ruby a reason to exist.
ruby has so many better reasons to exist beyond that.
since v3 it performs just as well if not better than Python.
it has a well documented and lush library of gems that still work even if they are 15 years old.
ruby gets a lot of shit because everyone ties rails in, which has improved, but is still slow as shit compared to other orms.
yeah rails is literally the only thing giving ruby a bad name, it’s terrible. Ruby is a beautiful, amazing language, and then people shit all over it because of Rails. I literally had someone complain that ruby is a horrible language, I asked them what they meant, they listed off all rails things, then I showed them the language and they were like “this isn’t what I was using…”.
in any case I think you really should only use ruby for very small scripts or programs. Nothing enterprisey at all.
I’m complete opposite. I feel ruby is a far more mature solution compared to what enterprises are using; node, python, (new hot language here).
Most enterprises use Java. Having built many large apps with Ruby and the JVM ecosystem, there’s a reason the JVM is chosen. Same for C#.
Yes, Ruby is way way more mature than node and Python, but most orgs aren’t building backends with those, or if they do they pretty quickly learn why they shouldn’t (been at two orgs that were moving off of node and python).
Js is dead use php!
Yup! Every time we add a new technology, the old does not go away. We just have more (gestures wildly) everything.
When picking a career specialization, don’t abandon all the old stuff. Some of it makes a lucrative career after others have moved on (HPC, COBOL, on-site servers).
PHP will never die. As long as code is written there will be PHP developers there to claim it’s good now.
bro ive been doing fullstack js dev for severals years to then realize php is superior💀
Well better late than never.
The only reason php is still alive is Facebook
WordPress?
W-what? Did you used js as backend? How was performance?
Happens a lot - my (quite small) shop was using NestJS for backends and my boss is way more experienced and wise than me. I unintentionally caused us to switch over to Python, which probably sounds as silly as JS to many, but - we deliver dope shit, on time and on budget 🤷♂️
Thanks to web browser development, there has been quite a lot of focus/investment into JS runtime optimizations. Since the server-side runtime environments use those same JS engines, performance tends to be quite good.
It’s very rare that the backend language significantly affects performance. In 99% of apps you could have the most optimized backend written directly in machine language, and you’d just shave off milliseconds.
That’s because in web development most of the latency comes from i/o (network requests, database access, file access), not from computation being slow.
So why did Facebook build that whole system of converting C++ to PHP or whatever they did? Was it because they didn’t understand the savings? Or when you scale that high, the savings really are significant? Were there savings?
Edit to subtract: https://en.wikipedia.org/wiki/HHVM is what it eventually turned into, and apparently it showed significant improvements even above the previous system.
Probably because someone said it was a good idea in a meeting.
There is absolutely no way that’s true lol
Its the most true thing you’ll read all day.
Ah yes, the language that picked strlen as the hash function for its hashtables.
Waaaaaaat
I also like T_PAAMAYIM_NEKUDOTAYIM
Can you elaborate on this?
Javascript is living proof that your language doesn’t need to be good to be used.
I tripped over this one in Delphi the other day.
function AnsiStartsText(const ASubText, AText: string): Boolean; function AnsiEndsText(const ASubText, AText: string): Boolean; function AnsiContainsText(const AText, ASubText: string): Boolean;
Too late to change it now
Still broken as designed.
Last week I found the code for the first website I created, way back in the mid 90s. The server-side part was written in Perl.
PHP forever.
It should be rewritten in rust, any way.
Spoiler
/s
✍️ we need PHP interpreter written in Rust, noted
It’s true that the fuckers that stayed in PHP now are getting paid insane amounts of money to maintain systems? I’ve heard they are the new cobol people.
I doubt that the pay is insane yet. There are a lot more PHP devs than COBOL devs. About half of the web still runs on PHP. It’s true that COBOL runs about half of the financial world, but PHP is less than 30 years old whereas COBOL programs are relics from decades earlier, and generally only get updated minimally if the systems around them change.
PHP will remain alive as long Wordpress is still being used.
But let’s not forget that the WordPress codebase is absolute dogshit.
And not an example of how to write proper modern PHP.
Happy 44th birthday IPv4! 🥳
Array_filter and array_map having the arguments swapped pisses me of so much.!
This person phps