30

I can't stand when people use (SomeBoolean == false) instead of (!SomeBoolean)

Comments
  • 7
    meh, it's easier to read if(x == false) than trying to hunt down if(!x) at 1 in the morning. I use the ! syntax, but definitrly don't mind the other. Some times verbosity ain't such a bad thing.
  • 1
    I go for verbose, life is too short!
  • 0
    @pixeltherapy Exactly why you should be going for concise not verbose!
  • 2
    @Lisanna in any language !False == True, and Javascript also represents null or undefined as false. My religious zealotry remains strong despite your false Python idols!
  • 3
    I always wonder why people never use (!e)?"this":"that"
  • 1
    @mclark1129 I refer to the reading of code, other people's and your own in six months time.
  • 0
    Working through legacy VB6 code this week...

    If SomeBoolean = False Then...

    as opposed to

    If Not SomeBoolean Then...

    And this is VB, the most verbose language!
  • 1
    @grolofson you're not alone my friend. Im in the prime of programming and saw this lately on a javascript project and gave it a try on my projects replacing if statements accordingly and what I came up with was exactly the same thoughts as you. Why the hell isnt this more popular? I think I will be using it all the time. :D
Add Comment