I really dislike when people don't use braces { } on if/else statements.

If(almond.harvestStatus == undefined) almond.harvestMode=false
almond.dropdown = false.

  • 1
    unless it's Python. but yeah, I feel you
  • 1
    @csessh Probably one of the worst things with Python, imo. Makes it harder to read. Good old C syntax is great.
  • 0
    @folkey I actually like it though.
  • 0
    Agreed, but I worked with some guys that had a style guide that forced no braces if you put the if statement on a single line:

    if (someCondition) return false

    Hard to go back now
  • 0
    @tytho yeah, I tend to do that (and ternary operator) a lot.
Your Job Suck?
Get a Better Job
Add Comment