re: What’s an unpopular software opinion you have? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: A left curly bracket that marks the start of a code block should be placed on a new line.
 

I live in conflict on this one. In PHP, when it's a class, I always add the brace on its own line, but for a function, I bundle it with the function name. On the other hand, when writing JavaScript, I never put the brace on its separate line. :deal_with_it:

 

Nope, I don't need to deal with your inconsistent syntax. 😋

code of conduct - report abuse