this post was submitted on 16 Jun 2023
167 points (96.1% liked)

Programmer Humor

32571 readers
316 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 1 year ago (2 children)

Most of the hate for php was born back in version 3 or 4, when it was a mess. Also a lot of people who where in college in those years learned php as a first language.

Combine a language that does not enforce good coding practices and a lot of people making their first website, and you get some pretty horrible codebases.

As part of my job is to maintain legacy php websites, I've seen lovercraftian nightmares. I love modern php, but I get where all this hate is coming from.

[–] [email protected] 3 points 1 year ago (1 children)

I've seen lovercraftian nightmares

I love this.

[–] [email protected] 1 points 1 year ago (1 children)

Once I had to fix a website with everything in the same script. Every page, every bit of html with inlne CSS and Javascript, was there in a gigantic sequence of else if, with functions (with embedded business logic) to output the common bits.

I mean, the streets of R'yleh were more navigable than... that.

[–] [email protected] 2 points 1 year ago

You can write bad code in any language. Looks like you hit the jackpot with that one.

[–] [email protected] 1 points 1 year ago

Yep. It's almost always a matter of bad programming practices rather than bad language.