this post was submitted on 02 Mar 2024
512 points (94.0% liked)

Programmer Humor

19606 readers
498 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 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Whelks_chance@lemmy.world 9 points 8 months ago (4 children)
[–] Ullallulloo@civilloquy.com 7 points 8 months ago

Note that that hasn't existed in PHP for years.

[–] dan@upvote.au 4 points 8 months ago* (last edited 8 months ago)

Blame MySQL for that. The PHP API just mirrors the MySQL C API of the same name. https://dev.mysql.com/doc/c-api/8.0/en/mysql-real-escape-string.html

Modern PHP doesn't use it - any modern code uses PDO with prepared statements.

[–] phoenixz@lemmy.ca 1 points 8 months ago* (last edited 8 months ago) (1 children)

Never used it in over 23 years of using PHP. Also, I don't thing that has existed anymore for the past 10 years or so?

Seriously, if we're going to do this, can we also bitch about painful java apps from 10 years ago, or the hilariously shitty modules in node from 10 years ago? I can go on for a while, but you hopefully get the point.

[–] Whelks_chance@lemmy.world 1 points 8 months ago (1 children)

The question was why do I hate it, and it was because of this. I don't understand your confusion.

[–] phoenixz@lemmy.ca 1 points 7 months ago

My confusion is that you hate it tosay because someone over a decade ago wrote 10 times the same complaint that was mostly fixed already since about a decade ago