10
tahnik
8y

So here's the first rant after joining new company. I was reading someone's existing code and I found this line:

return 42; // Something *really* weird happened

🤔

Comments
  • 1
    Its the best way to get the desired output the boss wants :P
  • 3
    Clearly it should have been:
    const static int FORTY_TWO = 42;
    ...
    return FORTY_TWO;

    😉
  • 0
    I don't see the issue as long as that's the only place that returns 42. Could easily find it in the source. Better than all errors not printing anything and returning 1.
Add Comment