News for hackers. Stuff that matters.
Re:PHP functions originally bucketed by strlen, were renamed... by nivla on Monday December 16, 2013 @11:29PM (#6919631)
I find comments like these interesting and at the same time ironic, especially on a sites like HN. I could think of 10 reasons why PHP is the "wrong" language but I could also think of 100 reasons why it made a successful one. Rasmus my not have created a perfect language but he sure did create one heck of a successful one which even the "elitest"/"perfect" language are still trying to catch upto.

Never belittle other's work, especially when striving to discover that magic formula to success. All the posts on HN about "How we made X successful" and we brush off the obvious ones in front of our eyes? Ever stopped to think why a crappy X is popular? Maybe there is something to it.

Also not to mount on irony but keep in mind, you are commenting on a site that has the HTML syntax from the Geocities era (it has its reasons though).

Re:PHP functions originally bucketed by strlen, were renamed... by MichaelGG on Tuesday December 17, 2013 @02:50AM (#6920037)
Can you explain how, in any possible universe, using strlen as a hash function and choosing function named to bin on length in any way helps PHP, at all?
Re:PHP functions originally bucketed by strlen, were renamed... by GhotiFish on Tuesday December 17, 2013 @05:20PM (#6924401)
well I can think of a reason you might do that. It's dead simple, and you can easily predict the distribution, so you can choose names that have a relatively good distribution. Sure your first few buckets go empty, but at that point, you're overthinking it, NEXT SECTION!
Re:PHP functions originally bucketed by strlen, were renamed... by GhotiFish on Tuesday December 17, 2013 @01:11AM (#6919825)
I would be very interested to hear those reasons.
Re:PHP functions originally bucketed by strlen, were renamed... by pessimizer on Thursday December 19, 2013 @11:29AM (#6935620)
1. mod_php

2. ...

Re:PHP functions originally bucketed by strlen, were renamed... by GhotiFish on Thursday December 19, 2013 @12:07PM (#6935945)
php prevents you from having a good page structure?

I'm no fan, but that's going a bit far, don't you think? What's a rickety syntax and inconsistent naming have to do with page design?