(Linux) Kernel Style Review
6 1
Review of (Linux) Kernel Style powered by the Slant community.
The kernel style is known for its extensive usage in the source tree of the Linux kernel. Linus Torvalds strongly advises all contributors to follow it. A detailed description of the style (which not only considers indentation, but naming conventions, comments and various other aspects as well) can be found on kernel.org.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Easier to define where a block starts and ends
The large indentation suggested by this style makes it easier to define where a block of code starts and where it ends. Especially after looking at a screen for a prolonged amount of time.
Cons
Con Hard to read in small monitors
Since the Kernel style uses 8 characters for indentation, the lines of code are pushed too much to the right. This may make it harder to read for small monitors (for example terminal monitors which are 80 characters wide).