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

Fetching IP of a Docker Container || SSH Enabled Docker || Configuration Inside Docker Container…

Extending WSO2 API Manager — Service Chaining

Keys to Creating a Successful Root Cause Program

Before Starting: C4 Model

What To Do When Your Employees Are Fighting in the Workplace?

Healthy disagreements include constructive criticism, challenge assumptions, look beyond biases. Unhealthy disagreements include drama and blame game, establish superiority, and personal attacks.

Configuration of Apache WebServer On AWS EC2 Instances Using Ansible

Create simple 3D button animation with Flutter

How to Manage Elixir versions on Mac or Linux — Part 2 of Getting Started with Elixir

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

Top 5 Birthday Gift Ideas for the January Born

Birthday Gift Hampers — ConsciousCo

Campaigning through Covid: 2021 in review

Denzel Washington commencement speeches to University of Pennsylvania and Dillard  University…

How Does the Instagram Algorithm Work in 2021?