Linus Torvalds: The Architect of Open Source and the Linux Kernel
Linus Torvalds, born in Helsinki in 1969, is a Finnish-American software engineer who created the Linux kernel in 1991 and the Git version control system in 2005. He has led the development of the kernel ever since, with a direct and often humorous style that shows in his writing.

This collection draws on “Linux kernel coding style”, a document in the kernel’s own documentation that opens in Torvalds’s first-person voice. It has been edited by many contributors over the years, so a few sentences in the current text may come from other hands. Readers of our pages on Alan Turing: The Architect of Artificial Intelligence and the Digital Age, Tim Berners-Lee: The Visionary Architect of the World Wide Web and Charles Babbage: The Father of the Computer and Visionary of the Digital Age will find more voices from the same world.
This collection contains 17 sentences copied word for word from the current version of that document on kernel.org, and each was checked against the page. They are in English and were not translated. Because the text has several contributors, we cannot attribute every sentence to Torvalds alone, but the first-person passages reflect his voice.
17 Sentences from Linus Torvalds’s Linux Kernel Coding Style
Taste and Independence
“Coding style is very personal, and I won’t force my views on anybody, but this is what goes for anything that I have to be able to maintain, and I’d prefer it for most other things too.”
The document opens with a disclaimer in the first person. Coding style, the author admits, is personal, and he will not force it on anyone, yet it is the rule for anything he must maintain. The sentence captures how kernel work runs: preferences are stated plainly, and the person who maintains the code has the final say.
“First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it.”
A famous joke at the expense of the GNU coding standards. The advice is to print them out and not read them, followed by the remark that burning them would be a great symbolic gesture. It is humor, but it also signals independence: the kernel has its own conventions and does not borrow them from another project.
“Coding style is all about readability and maintainability using commonly available tools.”
Here the purpose of style is stated without ornament. Rules exist for readability and maintainability, and they should work with commonly available tools instead of requiring special software. The sentence is a good summary of why a large project with thousands of contributors insists on a single consistent look for its code.
Names Should Be Honest
“C is a Spartan language, and your naming conventions should follow suit.”
The naming section begins with a character sketch of the language itself. C is Spartan, so names should be too: short, plain and without decoration. The sentence sets the tone for the advice that follows, which rewards brevity wherever brevity does not cost clarity, and asks for descriptive names only where they truly matter.
“A C programmer would call that variable tmp, which is much easier to write, and not the least more difficult to understand.”
A small example makes the point. A variable that holds a temporary value should simply be called tmp, which is quick to write and no harder to understand. The sentence pushes back against long, elaborate names for things whose role is obvious from a few lines of surrounding code and whose lifetime is short.
“Encoding the type of a function into the name (so-called Hungarian notation) is asinine - the compiler knows the types anyway and can check those, and it only confuses the programmer.”
A blunt verdict on Hungarian notation, the habit of encoding a type into a name. The reasoning follows immediately: the compiler already knows the types and checks them, so the prefix adds nothing and only confuses the reader. It is a typical example of strong opinions backed by a practical argument rather than by taste alone.
“If you have some random integer loop counter, it should probably be called i.”
The same section gives a counterpart to its warning against long names. A loop counter that is just a random integer should probably be called i. The advice is not about making every name short; it is about matching the length of a name to the importance of the thing it names and how long it lives.
“If you are afraid to mix up your local variable names, you have another problem, which is called the function-growth-hormone-imbalance syndrome.”
A joke with a serious point. If you worry about confusing your local variable names, the document says, the real problem is a function that has grown too large, and it gives that problem a mock medical name. The remedy is not cleverer naming but smaller functions that a reader can hold in mind at once.
Functions, Comments and Types
“The maximum length of a function is inversely proportional to the complexity and indentation level of that function.”
The section on functions begins with a rule of proportion. The more complex a function is, and the deeper its indentation, the shorter it ought to be. The sentence turns an abstract wish for simplicity into a measurable relationship, and it prepares the exceptions the text then allows for long but simple case statements.
“However, if you have a complex function, and you suspect that a less-than-gifted first-year high-school student might not even understand what the function is all about, you should adhere to the maximum limits all the more closely.”
Here the document offers a memorable test. If a less-than-gifted first-year high-school student could not understand what a complex function is about, the limits should be followed all the more closely. The joke carries a real standard: code is read far more often than it is written, so it should be accessible to many readers.
“NEVER try to explain HOW your code works in a comment: it’s much better to write the code so that the working is obvious, and it’s a waste of time to explain badly written code.”
A firm rule about comments. Do not explain how the code works in a comment, because it is better to write code whose workings are obvious, and explaining badly written code wastes time. The capital letters show the emphasis. The principle is that a comment should supplement good code, never rescue code that is poorly written.
“Generally, you want your comments to tell WHAT your code does, not HOW.”
The companion rule tells the programmer what comments are for. They should say what the code does, not how it does it, and the document adds that the reasoning behind it can be given at the head of a function. Read together, these two sentences give a compact theory of useful comments that many programmers still follow.
“Maybe there are other cases too, but the rule should basically be to NEVER EVER use a typedef unless you can clearly match one of those rules.”
Typedefs get one of the strongest warnings in the document. After listing the few cases where they are acceptable, the text says the rule is basically to never use one unless it clearly matches those cases. The reason given elsewhere is that hiding a type can hide what the code is really doing from the person reading it.
Memory and Speed
“In the kernel, garbage collection doesn’t exist (and outside the kernel garbage collection is slow and inefficient), which means that you absolutely have to reference count all your uses.”
This sentence explains why reference counting matters in the kernel. There is no garbage collection there, and outside the kernel it is described as slow and inefficient, so every use of a shared data structure must be counted. It is a reminder that the kernel manages memory by hand, and that discipline takes the place of automation.
“Remember: if another thread can find your data structure, and you don’t have a reference count on it, you almost certainly have a bug.”
A short rule of thumb that doubles as a bug detector. If another thread can find your data structure and you hold no reference count on it, the text says, you almost certainly have a bug. The sentence is easy to remember and easy to apply during code review, which is where concurrency mistakes are often caught.
“There appears to be a common misperception that gcc has a magic “make me faster” speedup option called inline.”
The section on inline functions begins by correcting a myth. Some programmers believe the compiler offers a magic option, the inline keyword, that simply makes code faster. The sentence frames what follows as a lesson in measuring rather than assuming, and it shows the document's habit of naming a misconception before it explains why it is wrong.
“Abundant use of the inline keyword leads to a much bigger kernel, which in turn slows the system as a whole down, due to a bigger icache footprint for the CPU and simply because there is less memory available for the pagecache.”
The consequence of the myth is spelled out. Using inline too freely makes the kernel much bigger, which slows the whole system by enlarging the instruction cache footprint and leaving less memory for the page cache. A well-meant optimization can therefore make performance worse, which is why the document asks for restraint.
Conclusion
Read as a whole, the passages show an engineer who prefers plain rules and plain words. Names should be short where meaning is clear, functions small, comments useful and optimizations measured. The humor is part of the method: a joke is easier to remember than a paragraph of policy.
These sentences are only a small part of a long document, and the full text gives examples and exceptions that a list of quotations cannot show. For anyone who writes code, reading the original on kernel.org is a good next step after this selection.
Frequently Asked Questions
Who is Linus Torvalds?
Linus Torvalds is a Finnish-American software engineer, born in Helsinki in 1969. He created the Linux kernel in 1991 and the Git version control system in 2005, and he has overseen the kernel’s development ever since.
Did Torvalds write every sentence in this collection?
Not necessarily. The document opens in his first-person voice, but it has been edited by many contributors, so the current text may include sentences from other developers. We say so rather than attributing every line to him.
Why does the document criticize the GNU coding standards?
The text makes a joke about them to signal that the kernel has its own conventions. It is humor with a point: the project prefers its own simple rules to style guides borrowed from elsewhere.
Which text is quoted here?
All 17 sentences come from the “Linux kernel coding style” document published in the Linux kernel documentation on kernel.org, in the version current at the time of writing. They are in English, were not translated, and were checked word for word against that page.
Recommended Similar Collections on Quotyzen
- Alan Turing: The Architect of Artificial Intelligence and the Digital Age – The founder of computer science, in his own words.
- Tim Berners-Lee: The Visionary Architect of the World Wide Web – Another builder of the digital world.
- Charles Babbage: The Father of the Computer and Visionary of the Digital Age – A Victorian pioneer of programmable machines.
Which of these coding rules would you add to your own projects? Share your view in the comments below!
Join the conversation