40
stisch
7y

not the worst by itself, except I keep finding them everywhere

if(thingThatIsTrue == true) {
// omfg
}

or it's inbred cousin

if(!thingThatIsTrue == false) {
//herpa derp
}

Comments
  • 8
    or this

    if (String.valueOf(booleanVariable).equals("true")) {

    // shit a brick and fuck me with it

    }
  • 4
    If is js and is triple equal it can make sense.
    It make a lot of sense actually
  • 3
    I actually used to do this, I looked at some of my old Java projects and it was a horrific sight
  • 1
    I did this a lot when I first started, luckily I'm wiser now
  • 1
    We've all done it, if we're honest.
  • 0
    @stisch Well, I didn't :D if something evaluates to boolean it did not make sense to me to check it again 🤷
Add Comment