Re:PHP functions originally bucketed by strlen, were renamed...
by cmelbye on Monday December 16, 2013 @09:44PM
(#6919283)
Does the fact that it's used by large websites change the fact that it's a poorly designed language?
[ Parent
| on HN ]
Re:PHP functions originally bucketed by strlen, were renamed...
by unavoidable on Monday December 16, 2013 @09:48PM
(#6919291)
Does the fact that it's a poorly designed language change the fact that it's a useful one?
Re:PHP functions originally bucketed by strlen, were renamed...
by code_duck on Tuesday December 17, 2013 @12:55AM
(#6919793)
Being poorly designed changes the extent to which it is useful.
Re:PHP functions originally bucketed by strlen, were renamed...
by cmelbye on Monday December 16, 2013 @09:51PM
(#6919301)
No.
Re:PHP functions originally bucketed by strlen, were renamed...
by koide on Monday December 16, 2013 @09:54PM
(#6919308)
No, but it certainly puts the importance of good language design in perspective.
We tend to overvalue good design just for good design's sake.
Re:PHP functions originally bucketed by strlen, were renamed...
by mikeash on Monday December 16, 2013 @10:01PM
(#6919329)
It puts the importance of good language design in perspective in two completely different ways, though!
You're completely correct, but at the same time, PHP also stands as a stark warning not to throw things together with no design, lest your misshapen child end up being immortalized.
PHP is simultaneously the best-case outcome and the worst-case outcome for a badly designed language.
Re:PHP functions originally bucketed by strlen, were renamed...
by MichaelGG on Tuesday December 17, 2013 @02:46AM
(#6920024)
In what perspective? PHP doesn't have to bear the weight of many other programmers dealing with their suboptimal design decisions.
A popular DB had an intentional feature that lost data on 32-bit builds. You might not get bitten until you've gotten plenty of data in it - it's still a terrible design that hurts everyone.
Re:PHP functions originally bucketed by strlen, were renamed...
by Yver on Monday December 16, 2013 @10:00PM
(#6919323)
You'd have to qualify what "poorly designed" means or even what language you're talking about. In that mail, Lerdorf recounts his time writing PHP/FI nearly twenty years ago. It's like judging the current Linux kernel based on the early version Linus Torvalds was using in his lab around the same time.
Re:PHP functions originally bucketed by strlen, were renamed...
by tptacek on Monday December 16, 2013 @10:11PM
(#6919363)
The filesystem layout on Linux was never pessimized in order to work around using string length (STRING LENGTH) as a hash function.