Xeverous / the_website

https://xeverous.github.io/
GNU General Public License v3.0
25 stars 0 forks source link

maximum line length in code snippets #20

Open Xeverous opened 3 years ago

Xeverous commented 3 years ago

The website has no strong reasons not to be mobile friendly so there should be some line length limit.

The trouble is in figuring out best possible limit.

Polo123456789 commented 3 years ago

If we are talking about C++, 80 characters is pretty standard.

Xeverous commented 3 years ago

I would really question that. We no longer have 4:3 monitors with fixed-size terminals. IIRC I have seen some people on CppCon saying it's a really archaic rule - 120 and even 150 are quite frequent limits in today's projects.

And regardless of this - I'm not interested in the practice, I'm more interested in "how much characters per line can you fit with reasonable font size on the smallest device possible that is used to read this website".