3 ms·
Reading long lines is also difficult. To me some parts of FE development kind of require deep nesting, e.g. css, but in javascript if you are 4/5 levels deep i
by gbog 10y ago
Reading long lines is also difficult.
To me some parts of FE development kind of require deep nesting, e.g. css, but in javascript if you are 4/5 levels deep in the nest (with the "long lines symptom"), then you should do as proposed in the article: split into modules and functions.
And sometimes (often?) long lines comes from the bad habit to do 3/4 things in one statement. To me good code does exactly one thing per statement, and except for config or urls, is should not be long.
- agentgt 10y agoYes but like I said before long lines is an extremely easy thing to fix in most PLs (ignoring config of course). You can refactor code so that the line is not as long but you can't refactor indention spacing.