181 characters on a single line of code
source link: http://rachelbythebay.com/w/2012/08/30/pain/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
181 characters on a single line of code
We have a bunch of "third rail" topics in the world of programming. There are plenty of opportunities to go to war over operating systems, editors, hard tabs vs. spaces, and (of course) programming languages.
Still, even with all of those differences, I have found that almost everyone will wrap their code somewhere around the 80th column. There are natural opportunities to do this unless your identifiers are horribly long. Even in the case of Java, when some places have decided to relax their margins out to 100 characters, that's still not too far out.
What if I told you there were people writing code who apparently have no restrictions on line length? They exist, and it's out there, and I have to deal with it. Here's what I'm talking about.
$ cut -c 120- *.cc | grep -v "^$" ); mble")); t r, then it's good! otherwise clear it cause it's a false flag ace. rwrite the header isn't ); _sample);
I've cut off the first one hundred and twenty characters on every line and there is still more left! The longest line I can find in all of the .cc files is 181 characters. Who honestly uses a screen that wide? I can make a rxvt which is about 250 characters wide if I throw my entire monitor at it, but why would anyone ever do this?
Stuff like this is why forks exist.
Recommend
-
32
今天这篇文章是写给觉得k8s很困难的娃的,其实每一门我们已知的互联网技术背后底层原理都简单得不行,但是中间被封装拓展得很复杂,在用户侧又被封装成比较简单的样子。 也就是典型的 简单->复杂扩展->简单使用 这种趋势,目前几乎所有的技术...
-
11
Reading Time: 2 minutes In this blog we will discuss about a new feature which is being introduced in Java 11 Nested Based Access Control. Oracle introduces JVM level support for private access of nested classes, fields etc....
-
5
How a Single Line of Code Made a 24-core Server Slower Than a LaptopDecember 31, 2021 Imagine you wrote a program for a pleasingly parallel problem,...
-
5
Issue #181 25 Mar 2021 Written by: Kristaps Grinbergs We have a fantastic new domain: swiftweeklybrief.com. 🎉...
-
5
The project with a single 11,000-line code file The project with a single 11,000-line code file 4/3/2022 Image bas...
-
6
Stencil with Anthony Guiliano on Web Rush #181 Anthony Guiliano joins us to chat about what Stencil is? What makes Stencil different? When and why should you...
-
4
New Features #9532 Enable build scrip...
-
4
Famous bugs How a single line of code brought down a half-billion euro rocket launch...
-
5
Changelog #181 May 15, 2023 Commit: e5c7228 Rel...
-
0
Safari Technology Preview Release 181 is now available for download for m...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK