The Art of Clean Code

Now lets say you believe that messy code is a significant impediment.and also you accept that only way to go faster is to keep your code clean.Then here comes the question you need to ask your self

“How do I write clean code.?” Its no good trying to write clean code if you do not know what it means for code to be clean!

Writing clean code is a lot like painting a picture. Most of us know when a picture is bad by looking at it self. this doesn’t make us to be a good painter or know how to paint. So too being able to recognize clean code from dirty code doesn’t mean that we know how to write a clean code!

Monalisa Good Painting     MANA LISA
Andrea Schmidt, Vancouver, Canada
12"x16", oil on canvas
Donated by the artist, January, 2002
MOBA #370

A cross-gender interpretation of the daVinci classic. Mana Lisa’s nose strikes nimbly, offsetting the dialogue between the foreground and profoundly varnished background.
Further, by deciphering this work’s title, perhaps we can contribute to the growing body of Leonardo's anagrammatic discourse:

From—Museum of Bad Art: Masterworks by Michael Frank and Louise Reilly Sacco


Writing clean code requires the disciplined use of extremely great number of little techniques applied through painstakingly “acquired” sense of cleanliness.The “code-sense” is the key.

Some of us are luckily born with it. Some of us have to fight to acquire it.Not only it lets us to see whether a code is good or bad, but also shows us the strategy for applying the

discipline to transform bad code in to clean code.


A Programmer with out “code-sense”  can look at a messy code and can recognize the mess but will have no idea what to do about it.But a Programmer with Code-Sense will look at a messy module and see options and variations and can choose the best variation to solve that mess


“Clean code is simple and direct. Clean code reads like well-written prose. Clean code never obscures the designer’s intent but rather is full of crisp abstractions and straightforward lines
of control.”-Grady Booch,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s