How to find out about accepted coding styles

Where to read (source formatting with best practice) for individual languages, that is, what conventions for naming variables, etc., for indentation and where to place curly braces, how and where to include comments, etc.

For example, for the book C by Kernighan and Ritchie, the C Programming Language and Linus Torvalds The Linux Kernel Coding Style Guide or the Google C ++ Style Guide and for Perl at least perlstyle, is the Perl style guide .

Edit: Perhaps I should have asked: "How good to start with coding styles."

+3
source share
9 answers

. , .

EDIT: Rob Kam , " ".

. , , , , . , , . , , .

, ... , - (.. oo- Java Smalltalk), , . Java, Pascal. pascal- Java, .

S.Lott , . . , Stackoverflow. , Stackoverflow - .

+3

, , .

- - - , .

, , : " xxx". , Java, Apache Ant.

. , . .

+1

Google . , Java, Qaru , . .

/ , .

+1

bob Clean Code, .

+1

.

  • , .
  • , .
  • Checkstyle .

, Checkstyle PMD, , "", , . , , .

+1

Microsoft , , #. , , , , , .

Visual Studio ( IDE), ( VS). VS, , " " ( ). :

+1

, , , ;)

, .

, , , ,

-

, , , .

, Mnementh, , , .

.... bye bye

0

C ++, , USENET, .

0

Source: https://habr.com/ru/post/1698667/


All Articles