DEV Community

Discussion on: Clean Code Chapter 1

Collapse
 
nombrekeff profile image
Keff

I really like the The boy scout rule I first heard it from Matias from FunFunFunction on youtube and it stuck with me since. 1% improvement a day equates to a lot improvement over the years!!!

Collapse
 
teamradhq profile image
teamradhq

Yeah it's really relevant to software design isn't it?

As I was reading this part of the chapter I found myself thinking of a habit I've developed over the years, when touching a file.

  1. Open file.
  2. Reformat code.
  3. Commit: "REFACTOR: Reformat code"

It can add a bit of noise to diffs, but over time it becomes less and less.