5

I once sat hours over a bug I couldn't understand until I finally saw the '!' in the condition. I started to use triple '!!!' for a while to avoid overseeing them.

If (!!! enabled) {// like really really not enabled
enable() ;
}

Comments
  • 1
    Is this considered a bad programming behavior or it doesn't really matter ?
  • 0
    I assumed that the java compiler removes the redundancy. But I didn't check that.
Add Comment