4 ms·
Oh It makes complete and total sense. PHP was not a "language" originally. It was a collection of handy functions in Rasmus' toolbox. When it "graduated" to lan
by zaphar 13y ago
Oh It makes complete and total sense. PHP was not a "language" originally. It was a collection of handy functions in Rasmus' toolbox. When it "graduated" to language, and I use that term loosely no one bothered to clean it up. No one bothered to clean it up is PHP's mantra and it explains everything that people hate about the language perfectly.
- MichaelGG 13y agoEven with the "PHP is a personal hack", it doesn't make sense. More effort goes into naming functions than writing a one-line xor "hash". I'm more inclined to believe Rasmus is trolling here. Sure, he used strlen, but it's too hard to believe functions were named with this in mind.
- ma2rten 13y agoI think the point is that it is simple to add symbols in the C source code. You simply count the number of characters and then add it in the appropriate place.
- DSMan195276 13y agoOr perhaps 'standards last forever'. By the time someone thought to say 'Oh, we should probably fix this mess we created', it's already being used in to many programs to change it out for something else.
- riffraff 13y agoyou can still deprecate in Vx and remove in Vy. I mean, I may understand keeping the strange array-is-a-hash thingy, but changing function names is easy.
- Shish2k 13y agoHeck, even without removal, PHP being "the language of sensibly named functions with a bunch of legacy aliases that you can ignore" would still be a million times better than being "the language where every single stdlib function has its own unique form of retardation" ( used in the dictionary sense, not in the able-ist sense)