re: What programming best practice do you disagree with? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: C# Style guidelines. I don't like having the opening bracer on its own line: Don't like public static void DoTheThing() { Thing theThing = ...
 

For functions and methods, including anonymous lambda functions, I keep the opening brace on the next line by itself. For objects and everything I put the opening brace on the line with the declaration.

Will 'favoriteThings' even compile with that final comma?

 

In JavaScript, the final comma is optional. In many other languages, that might not be the case.

code of conduct - report abuse