Clean Up Your Spaghetti
CtrlK
  • Introduction
  • What Happened to the Title
  • Author
  • Preface
  • Syllabus
  • Session 1: Don't Code Now!
    • Why Clean Code?
    • What is Clean Code?
    • How to Write Clean Code?
    • User Interface Design
    • UML
  • Session 2: Be Like a Writer
    • Naming
    • Comment
    • Function
    • Formatting
  • Session 3: Ideal Coding Process and Principles
    • Less Coupling High Cohesion
    • Level of Abstraction
    • Duplication
    • Test Driven Developement
  • Session 4: Stand on Giants
    • Strategy Pattern
    • Adapter Pattern
    • Factory Pattern
    • Singleton Pattern
    • How to Write Clean Code Exactly
  • Exercise: Get Your Hands Dirty
    • Session 1: Draw UML
    • Session 2: Clean Your Own Code
    • Session 3: TDD - The Ideals
    • Session 4: Let's Rock
  • Don't End Here
Powered by GitBook
On this page
  • Dirty Code First
  • Ya, How to Clean It?

Was this helpful?

  1. Session 1: Don't Code Now!

How to Write Clean Code?

Dirty Code First

"To write clean code, you must first write dirty code and then clean it."

So, the steps are:

  • Write code that works

  • Clean it

  • Clean it

  • Clean it

Never leave bad code there, it's unprofessional.

Ya, How to Clean It?

  • Name it precise

  • Minimal functions

  • Join this sharing session...

PreviousWhat is Clean Code?NextUser Interface Design

Last updated 5 years ago

Was this helpful?