Re:PHP functions originally bucketed by strlen, were renamed...
by jtreminio on Monday December 16, 2013 @09:55PM
(#6919309)
Nothing in this discussion mentions anything broken, though.
[ Parent
| on HN ]
Re:PHP functions originally bucketed by strlen, were renamed...
by Yver on Monday December 16, 2013 @10:05PM
(#6919337)
Indeed, and the title is incorrect too. Function names were not renamed to end up different buckets; Their names were picked that way.
Re:PHP functions originally bucketed by strlen, were renamed...
by Someone on Monday December 16, 2013 @10:07PM
(#6919347)
What about usability? "I wasn't too worried about not being able to remember the few function names." certainly indicates that usability decreased. That may have set a pattern for it getting broken, eventually.
Re:PHP functions originally bucketed by strlen, were renamed...
by skloubkov on Monday December 16, 2013 @10:42PM
(#6919485)
This. I was implying that length of the string should mean length in characters, not bytes. This could lead to broken code and would require programmers to keep in mind both.
I have switched from php long ago, but remember odd naming conventions and frequent switch of parameters.