Linus Torvalds rails against 80-character-lines as a de facto programming standard

This page summarizes the projects mentioned and recommended in the original post on /r/programming

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Revelo Payroll - Free Global Payroll designed for tech teams
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • linux

    Linux kernel source tree

    I wonder how he feels about this now: where he very enthusiastically argues for 72 characters to a line in commit messages?

  • libnest2d

    2D irregular bin packaging and nesting library written in modern C++

    I've regularly seen projects absolutely ruin their readability by adhering strictly to a character limit. You see excessive abbreviations, re-definitions of existing objects to create shorter names, line breaks in illogical places, etc.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.


    Now is the time to COBOL!

    Oof, I remember being in school and they taught us COBOL for 3 semesters (this was late 1990s...) I had to go look what Github has that's COBOL and this is what I found.

  • unmaintainable-code

    A more maintainable, easier to share version of the infamous

  • Monocypher

    An easy to use, easy to deploy crypto library

    When you're working on a leaf file with few (or no) dependencies, it's easy to keep function names short. Coupled with a 4-column indentation, it's really not that bad. Most of the time you'll get no more than 3 indentations, sometimes 4, for a total of 12-16 columns. That leaves 64-68 columns of actual text, which is not that tiny. Another reason to keep to a strict limit (be it 80 or 120) is when you're measuring your project size by the line of code. Allowing overly long lines would be a bit cheating. Here's an example of a strict 80-column limit. It mostly works for this particular case.

  • Revelo Payroll

    Free Global Payroll designed for tech teams. Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts