Best Practices – Keep Reading Existing Software Source Code

Best Practice 1- Keep Reading Existing Software Source Code

Let me ask you few basic questions before we start with one of the most important best practices required for a software developer.

  • Do you read movie magazines?

  • Do you read news papers?

  • Do you read road side advertisements?

  • Do you read junk written here and there?

  • Do you just read….?

Definitely your answer will be positive but if I ask you one more question in the series:

Do you read Software Source Code?

Only very few software developer will have positive answer because reading and understanding an existing software source code is the most boring task. If you are one of them who feel reading software source code is a boring task then you are missing one of the most important best practices, which a software developer should have in his/her life.

If you want to become a novelist, can you just start writing novels? I would say 100% no!!, you definitely need to read hundreds of novel before you start writing GOOD novels. If you want to become a movie script writer, can you start writing good movie script until you have gone through various good movies scripts?, again my answer would be no!!

So, if you want to write a good software code then how it will be possible for you to write good source code without reading tons of source code? Even if you will write something then how would you compare if what you write that is the best?

By reading others source code gives you opportunity to criticize the mistakes done in writing source code. You will be able to identify what are the mistakes other software developers have done in their source code which you should not repeat while writing good code.

There are many attributes of software codes ( indentation, comments, history header, function structure etc.), which you will learn by reading existing code specially, a code written by well experienced software developers. Spend some time in reading others source code and I’m sure you would be able to write BEAUTIFUL source code in few days or few weeks and you be able to fix the mistakes which you were doing so far in writing the source code.

One thing to experiment, just go in past and check the code you had written few years ago, you will definitely laugh….because you are always improving by doing practice.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s