this post was submitted on 19 Jul 2025
1087 points (98.6% liked)

Programmer Humor

26686 readers
1529 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

founded 2 years ago
MODERATORS
 

Source.

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!

you are viewing a single comment's thread
view the rest of the comments
[–] Decq@lemmy.world 101 points 2 months ago* (last edited 2 months ago) (6 children)

Let's be honest though. The early PHP versions were absolute dog shit. And the definition of how not to design a programming language. That said, that never stopped anyone in web development from using it apparently. No clue what modern PHP looks like, apparently it's better now.

[–] kingofras@lemmy.world 61 points 2 months ago (3 children)

Was not intended as programming language. The name literally stands for Hypertext PreProcessor. It was meant to be a script injector for HTML back when the internet was still fun.

Then it got out of hand and PHP didn’t evolve fast enough to be a web technology leader, but never ceded the position of old trusty workhorse, and still powers a significant part of websites.

[–] Decq@lemmy.world 23 points 2 months ago

I somewhat know the history of PHP and how it came to be. And that it was just a personal project that suddenly got big. So I don't blame the creator. But that still doesn't make it a good language.

[–] lol_idk@piefed.social 15 points 2 months ago

Personal Home Page

[–] kernelle@0d.gs 7 points 2 months ago

OOP programming in PHP is pretty fun, keeping up with it's deprecations and vulnerabilities is not

[–] thesystemisdown@lemmy.world 20 points 2 months ago (3 children)

Modern PHP is better because it's modern. Which early version of a programming language was good? I've used a lot of them, and by modern standards, I think dog shit is a somewhat appropriate description for most of them.

[–] azertyfun@sh.itjust.works 14 points 2 months ago

It's one of a plethora of scripting languages from the '90s which were designed to be the antithesis of "fail fast" and kept going no matter what.

I guess what with C/C++ being the Mainstream Option at the time, not having to deal with a strict compiler must have felt like freedom. As someone who has had to maintain, cleanup and migrate ancient PHP code, I call it folly. That mindset of "let the programmer just do whatever and keep trucking" breeds awful programming practices and renders static analysis varying degrees of useless, which makes large-scale refactoring hard to automate which is just amazing when your major versions aren't even remotely FUCKING BACKWARDS COMPATIBLE.

PHP's original design is just fundamentally atrocious. It became popular in large part because unmaintainable code is usually someone else's problem.

A language that I would definitely use for server-side rendering and that was already good from its first stable release is Go. It was thoughtfully designed and lends itself really well to static analysis, while still being easy to write and decently performant.

[–] Decq@lemmy.world 7 points 2 months ago* (last edited 2 months ago)

It's been about 20 years since I've touched PHP. So i don't remember all the problems i had with it.

But some language from those times were at least consistent with itself and clearly more thought-out. Even though they might miss some of the nicety we've come to like nowadays. Of course for web development there weren't many better choices back then.

But I'm heavily skewed towards non-oo, static typed, explicit languages so PHP was probably never for me.

[–] chunes@lemmy.world 11 points 2 months ago (1 children)

I've never heard of a programming language that people don't consider shit

[–] friend_of_satan@lemmy.world 10 points 2 months ago* (last edited 2 months ago)

IMHO the killer feature was mod_php. Writing server-side website logic was stupid easy with that. I think if it weren't for that, php wouldn't have been nearly as popular.

I quit using it like 10 years ago, but I'm happy with what I did with it and got from it.

[–] nilloc@discuss.tchncs.de 6 points 2 months ago

When I was using Ruby (some Rails, but mostly Sinatra, for little web apps and api serving) Laravel was coming up in PHP shops. Which was just trying to be Rails running on PHP from what I could tell.

There were others before that, like CakePHP, but all I remember about that of all the bugs my coworkers dealt with. I was strictly a front end dev back then.

[–] ThirdConsul@lemmy.ml 3 points 2 months ago

No clue what modern PHP looks like

Like worse C#.