News for hackers. Stuff that matters.
Re:Java is pass-by-value, Dammit (and so are Ruby and Python... by rbanffy on Monday December 07, 2009 @09:24AM (#981196)
I think that, instead of hiring those who correctly figure out what happens in this code, you should hire also those who have strong, almost allergic, reactions against it.

Do you really maintain stuff like this in your codebase?

Re:Java is pass-by-value, Dammit (and so are Ruby and Python... by dschobel on Monday December 07, 2009 @10:59AM (#981372)
No, I simply found it the easiest way to test understanding of pass-by-value vs pass-by-ref.
Re:Java is pass-by-value, Dammit (and so are Ruby and Python... by rbanffy on Monday December 07, 2009 @12:37PM (#981585)
It is, but is it that important as to concoct an obscure example? I wanted to rip out my eyes when reading it ;-)