Hacker News new | past | comments | ask | show | jobs | submit login

Yes except that breaks actual code, especially affecting mobile devices where wrapping can make it very difficult to follow.



It doesn’t actually break code, it just wraps it on mobile devices differently. Make your window bigger (80 chars) if you want to see full lines. For mobile it’s still more readable than horizontal scrolling code.


> It doesn’t actually break code, it just wraps it on mobile devices differently.

I meant it breaks the flow of the code by inserting line breaks.

> Make your window bigger (80 chars) if you want to see full lines. For mobile it’s still more readable than horizontal scrolling code.

Not all code uses 80 as the standard, many use 100 instead. Regardless, it is not at all true that wrapping is more readable than horizontal scrolling. Wrapping doesn't obey the indentation of the surrounding context.


This is a matter of opinion, you see scrolling as better on mobile and I see wrapping as far far better.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: