Skip to content

Instantly share code, notes, and snippets.

Avatar

Simon Herbert simonherbert

  • Muenster, Germany
View GitHub Profile
@peterhurford
peterhurford / readable-code.md
Last active Jul 7, 2020
How do you write readable code?: 13 Principles
View readable-code.md

How do you write readable code?: 13 Principles

"Programs should be written for people to read, and only incidentally for machines to execute." -- Structure and Interpretation of Computer Programs

"How would you define good code? [...] After lots of interviews we started wondering if we could come out with a definition of good code following a pseudo-scientific method. [...] The population is defined by all the software developers. The sample consists of 65 developers chosen by convenience. [...] The questionnaire consists in a single question: “What do you feel makes code good? How would you define good code?”. [...] Of those, the most common answer by far was that the code has to be Readable (78.46%), almost 8 of each 10 developers believe that good code should be easy to read and understand." -- "What is Good Code: A Scientific Definition"

You can’t perform that action at this time.