Skip to content

Instantly share code, notes, and snippets.

View anoopmaddasseri's full-sized avatar
💪
Nothing great ever came that easy.!!

Anoop Maddasseri anoopmaddasseri

💪
Nothing great ever came that easy.!!
View GitHub Profile
@peterhurford
peterhurford / readable-code.md
Last active September 23, 2024 09:45
How do you write readable code?: 13 Principles

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"