News for hackers. Stuff that matters.
Re:Ask HN: what is the most stupid line of code you saw? by kschua on Tuesday February 19, 2013 @11:06PM (#5248871)
Java code

if (obj instanceof java.lang.Object)

Re:Ask HN: what is the most stupid line of code you saw? by eduardordm on Wednesday February 20, 2013 @07:52PM (#5254588)
First, your answer is why I almost never criticize people's code:

This is (was in Sun's time) an actual possible certification question and you are wrong, this CAN return false:

        Object obj = new Object() {{ System.out.println(false); System.exit(0); }};
        
        System.out.println(obj instanceof Object);
Re:Ask HN: what is the most stupid line of code you saw? by _yields on Wednesday February 20, 2013 @04:38AM (#5249621)
ha! this is gold