Clean Code
Clever
Educational
Predictable

Clean Code A Handbook of Agile Software Craftsmanship

Looks at the principles and clean code, includes case studies showcasing the practices of writing clean code, and contains a list of heuristics and "smells" accumulated from the process of writing clean code.
Sign up to use

Reviews

Photo of Nam Dang
Nam Dang@southxzx
5 stars
Jun 1, 2023

Great book for everyone who wants to be a professional programmer. This book consists of many chapters that mainly talk about how to write code cleanly such as naming convention, function, class, comments,... All of these things made me wow many times with the explicit examples. But the Java language used to illustrate the code might confuse me a bit (cause I’m kinda bad at Java lol). I skipped a couple of pages about Java’s lib and concurrency programming. Anyway I would highly recommend this book for everyone especially new programmers like me for a better orientation. :D

Photo of Ahmed Salem
Ahmed Salem@salem309
3 stars
Sep 6, 2022

I loved the philosophy and spirit beyond the writing! Yet for some reason I do believe it was odd and old fashioned for some topics! Yet It is a good knowledge and good do pass by! Merged review: I loved the philosophy and spirit beyond the writing! Yet for some reason I do believe it was odd and old fashioned for some topics! Yet It is a good knowledge and good do pass by

Photo of Nikolay Bachiyski
Nikolay Bachiyski@nb
4 stars
Nov 19, 2021

I loved and I agree with the clean code values the book embodies. Also, I loved the slight extremism of the rules: never write a function more than 15 lines, never use more than 3 arguments! Of course I will break those rules. But remembering Uncle Bob's fervor when stating the rules, I will always make sure to have a good reason to break them. The major drawback is that the book is very Java-centric and the examples didn't prove as practical for me, as they could've been. Abstract classes, interfaces, class hierarchies, verbosity. Yet, without the examples, all the values, rules, and heuristics would've been lonely and hard to pay attention to. I am sure everybody will find something to love about Clean Code.

Photo of Kamil Pomykała
Kamil Pomykała@akasiek
4 stars
Aug 13, 2023
+3
Photo of NordicShivers
NordicShivers@nordicshivers
3.5 stars
May 31, 2023
Photo of Pablo Domínguez Gil
Pablo Domínguez Gil@developerlover
5 stars
Mar 5, 2023
Photo of Patrick Ludewig
Patrick Ludewig@patrick
3.5 stars
Feb 23, 2023
+2
Photo of Bashbunni
Bashbunni@bashbunni
2.5 stars
Sep 1, 2022
Photo of Thiago Valentim
Thiago Valentim@thiagovalentim
5 stars
May 7, 2022
Photo of Pawel Cebula
Pawel Cebula@pawel
4 stars
Jan 4, 2022
Photo of Christian Bager Bach Houmann
Christian Bager Bach Houmann@cbbh
3 stars
Jul 20, 2024
Photo of Timeo Williams
Timeo Williams@timeowilliams
3 stars
Jun 5, 2024
Photo of Brendan M
Brendan M@bmaclean05
3 stars
Feb 19, 2024
Photo of Thomas Torfs
Thomas Torfs@thomastorfs
5 stars
Feb 15, 2024
Photo of Ricardo Joaquinito
Ricardo Joaquinito@quinito
3 stars
Dec 21, 2023
Photo of Ricardo
Ricardo@ricardobarbosa
5 stars
Dec 19, 2023
Photo of Cihat Salik
Cihat Salik@cihat
5 stars
Sep 3, 2023
Photo of Mustafa Hussain
Mustafa Hussain@mhussain
4 stars
Jul 20, 2023
Photo of Sedat Kapanoglu
Sedat Kapanoglu@ssg
5 stars
Jul 6, 2023
Photo of Georgi Mitrev
Georgi Mitrev@gmitrev
3 stars
Jul 4, 2023
Photo of Gabriel Ayuso
Gabriel Ayuso@gabrielayuso
4 stars
Jun 30, 2023
Photo of Sebastian Stoelen
Sebastian Stoelen@sebastianstoelen
5 stars
Jun 9, 2023
Photo of Timur Literal
Timur Literal@garifzyanov_literal
5 stars
Jun 6, 2023
Photo of Alex
Alex@sharkerator
4 stars
May 28, 2023

Highlights

Photo of Travis Well
Travis Well@travisfw

It is not the language that makes programs appear simple. It is the programmer thatmake the language appear simple!

Page 36

wrt Ward Cunningham's contribution

Photo of Travis Well
Travis Well@travisfw

Clean code is simple and direct. Clean code reads like well-written prose. Clean code never obscures the designer’s intent but rather is full of crisp abstractions and straightforward lines of control.

Page 33

Grady Booch, author of Object Oriented Analysis and Design with Applications

Photo of Travis Well
Travis Well@travisfw

I like my code to be elegant and efficient. The logic should be straightforward to make it hard for bugs to hide, the dependencies minimal to ease maintenance, error handling complete according to an articulated strategy, and performance close to optimal so as not to tempt people to make the code messy with unprincipled optimizations. Clean code does one thing well.

Page 31

Bjarne Stroustrup

Photo of Travis Well
Travis Well@travisfw

We’ve all looked at the mess we’ve just made and then have chosen to leave it for another day. We’ve all felt the relief of seeing our messy program work and deciding that a working mess is better than nothing. We’ve all said we’d go back and clean it up later. Of course, in those days we didn’t know LeBlanc’s law: Later equals never.

Page 27

Martin is saying if the code you commit isn't clean, it never will be. So … never write anything but clean code?

Photo of Travis Well
Travis Well@travisfw

specifying requirements in such detail that a machine can execute them is programming.

Page 26

Martin's definition of programming.

This book appears on the shelf 2016-reads

Dracula
Dracula by Bram Stoker
Fahrenheit 451
Fahrenheit 451 by Ray Bradbury
North and South
North and South by Elizabeth Cleghorn Gaskell
Emma
Emma by Jane Austen
The Hating Game
The Hating Game by Sally Thorne
Romeo and Juliet
Romeo and Juliet by William Shakespeare

This book appears on the shelf Shorties read

The Fall of the Hotel Dumort
The Fall of the Hotel Dumort by Maureen Johnson
Mina Wentworth and the Invisible City
Mina Wentworth and the Invisible City by Meljean Brook
Fever 1793
Fever 1793 by Laurie Halse Anderson
The Demon in the Wood
The Demon in the Wood by Leigh Bardugo
Animal Farm
Animal Farm by George Orwell
The Assassin and the Underworld
The Assassin and the Underworld by Sarah J. Maas

This book appears on the shelf Childhood books

Winnie-the-Pooh
Winnie-the-Pooh by A. A. Milne
Asterix the Gaul (Asterix)
Asterix the Gaul (Asterix) by René Goscinny
Grimm's Fairy Tales (Penguin Popular Classics)
Grimm's Fairy Tales (Penguin Popular Classics) by Brothers G...
Pinocchio
Pinocchio by Carlo Collodi
Tarzan of the Apes by Edgar Rice Burroughs, Fiction, Classics, Action & Adventure
Tarzan of the Apes by Edgar Rice Burroughs, Fiction, Classic...
The jungle book
The jungle book by Rudyard Kipling