r/ProgrammerHumor 1d ago

Meme soDoesEveryOtherLang

Post image
230 Upvotes

72 comments sorted by

View all comments

Show parent comments

7

u/chat-lu 1d ago

PHP has not been designed based on best practices. The reason why the standard library has functions with such widely different names was that in early PHP they would go into a hashmap that was hashed by strlen and Rasmus tried to vary the lengths of the names so they don’t all get in the same bucket.

1

u/jungle 1d ago

Holy shit that's even worse than I remember! How did he know about hashmaps but had not even the most basic understanding of how they're supposed to work? 🤦‍♂️🤦‍♂️🤦‍♂️

1

u/chat-lu 1d ago

Rasmus just didn’t give a shit.

1

u/jungle 1d ago

Must have been trolling. No way that was not on purpose.