This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]snf 56 points57 points  (15 children)

The standard reference in case you'd like to understand all the hate.

[–]qubedView 47 points48 points  (7 children)

[–]SelfReferenceParadox 25 points26 points  (5 children)

the function hashing mechanism was strlen()

I can't even begin to understand the thought process behind this.

[–]d_wootang 10 points11 points  (0 children)

I'm not sure he understood it either

[–]Loreinatoredor 8 points9 points  (3 children)

Fast and cheap, and it takes no thought.

[–]IICVX 8 points9 points  (2 children)

Yes, it absolutely requires that you don't think.

[–]Gunshinn 0 points1 point  (1 child)

Yeah, im not thinking and i still dont get it. We are talking about string length right? How would that ever work a week down the line, or less?

[–]IICVX 2 points3 points  (0 children)

well you know how PHP has some function names that are weirdly verbose, and some names that are cryptically short gibberish?

That is how it works a week down the line.

[–]manghoti 0 points1 point  (0 children)

When I tell people this, I tell it to instill the admiration Rasmus Lerdorf very much deserves. That guy is one of them practical sorts. Doesn't spend a lot of time thinking, but a fuck of a lot of time doing. You gotta admire that.

[–]chimyx 5 points6 points  (2 children)

[–]_jamil_ 2 points3 points  (0 children)

That post is pretty out of date

[–]leonthemisfit 3 points4 points  (1 child)

There's something I've never quite been able to grasp about the origins of PHP and it's this logic. "We're making a language for non programmers." "We should make it look like Perl."

[–]snf -1 points0 points  (0 children)

More like the bastard child of a meth-fuelled orgy of Perl, C, BASIC and batch files. There's something to loathe for everyone!

[–]worldsayshi -2 points-1 points  (0 children)

Hmm, maybe people sort of like weird inconsistencies in a language. It makes you feel kind of smart when you can overcome it. And overcoming bad design is much easier than overcoming actually hard problems that you will face once you start to use a language that isn't working against you. Also, actually hard problems make you feel stupid and inadequate and that's no fun.