https://static.lwn.net/kerneldoc/process/coding-style.html
THIS MAN IS A GOD. EVERYONE SHOULD FOLLOW THIS.
>>58634949
Everything except 8 width tabs is good.
>>58635097
>Now, some people will claim that having 8-character indentations makes the code move too far to the right, and makes it hard to read on a 80-character terminal screen. The answer to that is that if you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program.
Na senpai
http://sdtimes.com/nasas-10-rules-developing-safety-critical-code/
>>58635166
>tfw this is too true
Anxiety kicks in when I see my could going too far right. I know I am doing g something wrong but I convince myself I can make it work and then it doesn't.
>>58635097
I agree with most of it, too, but this is one issue and the other is encouraging shortened variable names.
Sure, a good programmer can get away with "tmp", but I'd rather err on the side of caution and not give shitty programmers any leeway to use bad variable names.
>>58635196
This is pretty good, but talking about "assertion density" is useless management-speak. A better policy is also much simpler: use assertions to verify all of your inputs, even if they should be trusted. This also makes local formal verification much easier.
>>58635166
I want multiple vertical splits worth of code at the same time, so I prefer even less than 80 characters per line.
>First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture.
>>58635320
Get a bigger screen
>First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture.
Is this a not so subtle "fuck you" to Stallman?
>>58634949
I knew there was nothing wrong with 8 character tabs but a few bullies here shat on me for having it
>>58635320
Any 1920x<whatever> monitor should have no trouble with 2 side-by-side 80-character text files.
>>58635332
Point is that 8 width tabs wastes a lot of vertical space.
2 is enough to see indentation levels clearly.
>>58635097
If they're actually tabs, it really doesn't matter how thick they are since you can change that user side
>>58635358
Everything Linus does is a fuck you to Stallman
>>58634949
bikeshedding, the post
>>58634949
> Shitting on good variable naming
Wew
>>58635463
>width tabs
>vertical space
You're now officially retarded.
>>58635515
This would be true if the Linux kernel didn't also use tabs for alignment all over the place. Also, if you do that you need to remember that each tab contributes 8 columns to the line width, even if you have it set to less.
>>58635613
For example, this is what the code can look like when you set tabs to 2 spaces
>>58635611
Meant horizontal space obviously.
>>58635611
shut up faggot.
>>58634949
Thanks but no.
I'll continue to write my functions like soint main() {
stuff;
}