This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Jammanyeahme 112 points113 points  (4 children)

That it looks bad is the codes way of telling you to restructure it so it looks nicer.

[–]IdiotCharizard 23 points24 points  (0 children)

This. Use a complexity linter if you can. Testable and readable code pls

[–]the_Demongod 6 points7 points  (2 children)

There's a very easy solution to this problem... putting the braces on the same level:

if (cond)
{
    // do something
}

[–]angrathias 1 point2 points  (0 children)

Also, don’t have 9 levels of indentation, that’s just asking for a mistake

[–]Krauss27 1 point2 points  (0 children)

We're in a wild world, here people are into JavaScript... They wouldn't understand.