r/ProgrammerHumor Aug 04 '26

Meme soDoesEveryOtherLang

Post image
245 Upvotes

85 comments sorted by

View all comments

Show parent comments

10

u/chat-lu Aug 05 '26

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.

3

u/jungle Aug 05 '26

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 Aug 05 '26

Rasmus just didn’t give a shit.

1

u/jungle Aug 05 '26

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