May 30, 2021 Article blog
Each line of code should be less than 80 characters. I f the code is long, try to wrap, and the next line of code should indent 8 spaces. T his allows the code to be organized neatly and reduces the fatigue of reading the code. Line breaks indent 8 spaces can be distinguished from the indentation of 4 spaces in the snippet to enhance the readability of the code.
This effectively prevents errors caused by copying and pasting, and effectively enhances the readability of the code. T he output of the code meets our expectations. H owever, as far as writing is concerned, the assignment statement to valueB is a line break after the variable valueA, which can easily be misinterpreted as valueB-ValueA, causing dyslexia for reading. T he copy statement for valueC is much easier to understand when the line break is made after the 'plus'. This is also the way this article advocates line breaks.