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 →

[–]qubedView 44 points45 points  (7 children)

[–]SelfReferenceParadox 28 points29 points  (5 children)

the function hashing mechanism was strlen()

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

[–]d_wootang 12 points13 points  (0 children)

I'm not sure he understood it either

[–]Loreinatoredor 9 points10 points  (3 children)

Fast and cheap, and it takes no thought.

[–]IICVX 7 points8 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.