Bookreview: Clean Code on the rescue

Clean Code on the Rescue

Good Code, Bad Code

Excellent software crafts(wo)men

  • PART 1: Principles, Patterns and Practices of writing clean code.
  • PART 2: Case studies & exercises of increasing complexity. Each case study is an exercise in cleaning up code and transforming a problematic code base into a clean and efficient one.
  • PART 3: Bad Code Examples. The last chapter consists of a list of “code smells”, gathered while creating the case studies.
  • GOOD vs BAD code: How to distinguish between good and bad code
  • GOOD CODE: How to write good code
  • REFACTOR CODE: How to transform bad code into good code.
  • NAMING: How to create good coding names, functions, objects and classes
  • FORMATTING: How to format code for maximum readability
  • ERROR HANDLING: How to implement complete error handling with correct code logic
  • UNIT TESTING: How to unit test your code
  • TEST-DRIVEN DEVELOPMENT: How to practice test-driven development

The 7 rules of Clean Code

RULE 1: Names matter

RULE 2: Boy Scout principle

RULE 3: Tell a story

RULE 4: DRY principle (Don’t Repeat Yourself)

RULE 5: Comment only if needed

RULE 6: Error handling

RULE 7: First test, then Code

--

--

--

A passionate Digital Communication Professional from Barcelona, Spain. Experience: Content, UX-design, Frontend. https://dianavile.github.io/AllDigitalAgency/

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

PHP Forms

Spring 2020 CS373 SeongBeom Ko

Lessons from finishing my first Unity project

A motorbike crossing a finish line.

Temperature sensor library for Raspberry Pi written in Go

Some useful tools for Web Development in Android

How Searching is Done in Django🔍?

The Power Of Stupid

10 Most Common WordPress Errors and How to Fix Them

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Diana Vilé

Diana Vilé

A passionate Digital Communication Professional from Barcelona, Spain. Experience: Content, UX-design, Frontend. https://dianavile.github.io/AllDigitalAgency/

More from Medium

CS373 Spring 2022: Daniel Fernandez

CS373 Spring 2022 Week 5 — Ting-Yin Chang Chien

Melanoma Skin Cancer Detection

Big-O Notation in 200 words