Why Clean Code?

Cost of Owning a Mess

Whenever you don't clean the code immediately, it will drive the productivity toward zero. Here's how it works step by step:

  • some mess
  • slow productivity
  • time pressure
  • more mess code written

Eventually, dirty code drives your project to death.


"Making it easy to read actually makes it easier to write."

"80% or more of what we do is quaintly called maintenance: the act of repair (more like a repairmen in stead of producing things)."

"You can read it, nod your head, and then go on to the next topic."

Less Bug

"The logic should be straightforward to make it hard for bugs to hide."

"Bad code tempts the mess to grow!"

It's Your Job

"It's your job to defend the code with equal passion."

"It is unprofessional for programmers to bend to the will of managers who don't understand the risks of making messes."

Pitfall: "Our value system focuses more on outward appearance than on the substance of what we deliver."