News for hackers. Stuff that matters.
Re:Probably the worst URL scheme ever by aerique on Thursday May 02, 2013 @09:09AM (#5644212)
No, I think it is just a joke: if you parse "*2" as "times two" you could optimize it in code by shifting the bits left since bit shifting operations are cheaper than multiplication.

#b0001 = 1

#b0010 = 2

#b0100 = 4

#b1000 = 8

Re:Probably the worst URL scheme ever by masnick on Thursday May 02, 2013 @09:13AM (#5644235)
Haha thanks for the explanation.
Re:Probably the worst URL scheme ever by delinka on Thursday May 02, 2013 @09:26AM (#5644291)
And to continue on this tangent, if your code is multiplying by the constant 2 (e.g. "x = z * 2") the compiler's probably going to optimize that into a shift anyway, so just keep the "* 2" to keep future human readers of the code happy.