3 ms·
Splitting one line into many because of character limits can also make an action overly verbose or mentally challenging. In some cases, unreasonable gymnastics
by colechristensen 6y ago
Splitting one line into many because of character limits can also make an action overly verbose or mentally challenging.
In some cases, unreasonable gymnastics needs to be done to get 80 character lines, turning good variable and function names into shorter worse ones or adding functions just to hide characters.
- Normal_gaussian 6y agomost languages support simply adding "visual" newlines in the middle of a "logical" line; I tend to do this to improve readability - could this be done to avoid your long lines?
- colechristensen 6y agoSometimes, but not always. I often do it too to improve readability, but it doesn't always actually improve readability. Sometimes it takes something which makes logical sense to have in one line and arbitrarily breaks it up in awkward spots over several lines. If you squish code into 80 characters wide, you lose vertical density, making a set of actions more difficult to understand by separating steps.