When working with code from several authors, I often encounter the problem of the preferences of curly shapes (same line and new line). Is this a good / bad practice or not even a problem when it comes to matching an existing style using your own preferences?
Does the situation change if you add new code to a class or modify an existing code? Finally, if the style needs to be matched, how far should the match go? i.e. file, class, subclasses, etc.
Example:
if(this) { doThat(); }
Vs.
if(this){ doThat(); }
, , , , .
. , , .
, . . . ....
, . , , . .
. , . , , .
, , ; , .: D
( ), , . , , , , . , , , , , lol
, , , . - , , . - , , , , , , , . , , , . , , , , .
Source: https://habr.com/ru/post/1783988/More articles:How can I update another model with a callback? - callbackPython: how to disable the keyword "property"? - pythonHow to start a new facebook web application - c #C or C ++ for writing a compiler? - c ++JQuery Star Rating plugin - selection in callback causes endless loop - javascriptPHP: how do I know if a user is uploading a file? - phpPerl regular expression for English word - regexIs there a plugin or gem that can help me โinvite a friendโ on the rails? - emailCross-correlation of two arrays in OpenCV - c ++regular expression for determining sequential numbers - does not work for input without entering text - phpAll Articles