Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agree with everyone else and you want to go easy on people but then you get code like this:

    public class C {
      int x;

      public C(int x) {
        int x;
        this.x = x;
      }
    }
and you waste an hour trying to work out why C(5) is not working as expected because god knows who would do that? (summarised from a real life example)


I something similar where a colleague (a long time ago) realised that someone had overload string assignment in the C++ code he was debugging to do something "special" depending on the value of the string.


An old boss of mine used to say,

"Sometimes I shake my head and wonder. And sometimes, I just shake my head."




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: