4 ms·
> What screen size? What resolution? What ide/editor window size? What font face & size? With or without soft line wrapping? Does it matter? There will be a po
by lmm 11y ago
> What screen size? What resolution? What ide/editor window size? What font face & size? With or without soft line wrapping?
Does it matter? There will be a point at which an extra line makes the difference. And particularly with modern screen shapes, vertical space is at much more of a premium than horizontal space.
> Honestly arguments about how "pretty" code is are fucking ridiculous. Despite what someone said, the purpose of source code is not to be "read" with "running" as a secondary task. That literally only applies to code written purely for educational purposes.
> The purpose of code is to achieve the goals of the software as efficiently as possible. Efficiency is not just about speed - a fast but unreliable program is not efficient.
The ability to understand software is vital to real-world usefulness though. Requirements change all the time, and so the ability to make changes to software is vital - and to effect desired changes to code you must first understand it.
- Nemo157 11y ago> And particularly with modern screen shapes, vertical space is at much more of a premium than horizontal space. What? Modern 10:16 screens give more lines than 3:4. 900x1440 gets like 70 lines with 100 columns at a decent font size, better than around 60 lines with 110 columns with 960x1280.
- Macha 11y agoGood luck using your laptop vertically.
- stephenr 11y agoAs I said in the other thread I'm not talking about readability. The exact term used was pretty. > There will be a point at which an extra line makes the difference So why not remove all blank lines too. They're less important for reducing issues that single line/braceless flow control blocks can cause.
- lmm 11y ago> So why not remove all blank lines too. They're less important for reducing issues that single line/braceless flow control blocks can cause. By and large I do. But I don't think what you say is actually true. Given the choice between: stepa1 if(something) stepa2 stepa3 stepb1 stepb2 stepb3 and stepa1 if(something) { stepa2 } stepa3 stepb1 stepb2 stepb3 (same number of lines), I think the former is often more readable - stepa2 is visually separated in either case.