11

console.log (1+'1');
Console: 11
Me:

Comments
  • 3
    int x = (char *)0x1337;
    Terminal: segmentation fault.
    Me:
  • 3
    You are concatenating a string and a number in a language that supports automatic type conversion. What do you expect to happen?
  • 0
    @irene I really hate this because idiots who work together, haven't read up on the language, and that don't test the code put stupid things like these in. And then another idiot comes along and just decides to try to fix it by deleting the function altogether. This rant is just an extremely simplified version of what actually happens.
  • 0
    @Carbon-Monoxide We have a no double equals rule in code reviews. Seems to fix most anti-patterns.
Add Comment