8
zzguy
8y

Is it weird to not put a space between the beginning of my if statements? (i.e. if(true) vs if (true) ) Cuz my boss thinks it's weird enough to "have a talk with me"...

Comments
  • 1
    Looks a lot nicer with the space IMO.. But not sure if it's enough of an issue to have a sit down with the boss..
  • 2
    Lol I actually agree, it's a stupid bad habit. I just was miffed b/c I was in the zone and I was like "really?!?! was this worth it?"
  • 1
    @zzguy Are there clear coding standards? Just wondering why the boss would even bother...
  • 2
    I've seen them as if( true ) and started using that. Maybe if ( true ) as a hybrid. Haha.

    If ( true )
  • 3
    Tell your boss that with a decent editor he can get every code-style he wants.
  • 0
    Oh I'm sorry were there not enough spaces for you?

    if ( true )

    Just to fuck with him
  • 0
    Oh man, code formatting should definitely happen automatically. But to answer the question, yes, there should be a space or it's weird and yes, you boss is weird too.
  • 0
    Way more response than expected! Thanks for the tips peeps. Will def add eslint to our builder for my own sanity or lack thereof.
Add Comment