Is there a standard for code fields?

Related questions

During coding, how many columns do you format?
What is a reasonable maximum number of characters per line of code?
Do people live by the rule of 80 columns?
A limit of 80 columns is still useful?


At the edges of the code, I mean lines that determine how long a particular line of code is. Different IDEs have different languages ​​for this device, I believe that Visual Studio calls them "grooves."

As the saying goes, is there a specific standard for length code fields? My IDE (Netbeans) has 80 by default, but I was wondering if there are any rhymes or reasons for this default.

+3
source share
6 answers

We have been using 80 columns for over 80 years , thanks to IBM punch cards. This is the default text mode on the PC, and this is the default terminal window size. Saving rows under 80 columns means that they can be displayed unpacked in these environments.

I believe that Visual Studio defaults to 120 columns (although you can change it ), which, in my opinion, makes more sense, given the name of the LongVerboseDotNetCompliant conventions. When working in an IDE, this is pretty common to maximize it, so a limit of 80 columns tends to reduce space if you don't have a lot of sidebars.

72 ( HTML, Python ..), .

+13

80, , .

- , python, , CLI, .

+4

:
1) (, );
2) - , .

80 - ( ), , , . , 80- .

, , IDE , 120 - .

, 3 5 . 2 , , , ( , SQL), 8 .

+2

80 , : , , , 120 , , .

+1

, (120 ) , 80 , , , :

, , - ..

+1

, 1024x768

0
source

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


All Articles