Clean Code Series: I

Birat Rai
3 min readJan 15, 2017

--

Introduction: The Art of Clean Code Jutsu

Clean Code.

A novice developer once tried to cramp up more number of lines of code that did everything wondering why all WTFs/min.

This Clean Code Series talks about Clean Code book by Robert C. Martin.

Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best. ~ Robert C. Martin

Why we must Clean Code?

We all know that there is no code that stands the test of time except perhaps “Hello World”. And as product matures various developer contributes to it’s growth. That means code has tendency to change overtime with change in business demands. To withstand this transformation clean coding is a must.

  • Code Maintainability: Writing Clean Code is writing good literature. It reflects you. Every line is stanza carefully handcrafted interwoven into a beautiful mosaic of code pieces.
  • Code Readability: Writing Clean Code is explaining the Physics. The code should implicitly explain in small details exhibiting simplicity what the magical functions does.

“When you are courting a nice girl an hour seems like a second. When you sit on a red-hot cinder a second seems like an hour. That’s relativity.” ~ Einstein

  • Code Smell Repellent : Writing Clean Code is like wine-making. It may take ceremonies but in the end you will feel comfortable with the code (at the least). Bugs will find it hard to hide.
  • Code Epithet: Once you commit with version control. The name gets etched with the code forever.

What is Clean Code?

Writing clean code is a lot like painting a picture ~ Robert C. Martin

Clean code is simple and direct. Clean code reads like a well-written prose. ~ Grady Booch

Clean code is elegant and efficient with straightforward logic making hard for bugs to hide, minimal dependencies for ease of maintenance ~ Bjarne Stroustrup

Clean code can be read and enhanced by a developer other than its original author ~ “Big” Dave Thomas

In addition, Art of Clean Code is also like “Every block of stone has a statue inside it and it is the task of the sculptor to discover it”. Developer sees block of code (written by others or himself) and within it he sees the task to make it clean.

How to Start Clean Coding?

Pack your bags and start the journey to dreamland. Enough said let’s begin our journey into Clean Code Series.

Next post: Meaning Full Names Jutsu

--

--

Birat Rai
Birat Rai

No responses yet