Sunday, July 4, 2010

Code Reusability

Hi Guys,

I went to bed but I couldn't sleep, so before I sleep tonight I am going to tell you what is Better Programming.

What is Better Programming? You don't know the answer then don't worry, read this blog completely.

Writing reusable code is called Better Programming.

Then what is Code Reusability?

Write it once and make it available anywhere and any place. Make the changes in one place and changes available to the application it uses the code.

You don't want to rebuild the code again and again; you want to reuse the code.

Ctrl ‘C’ and Ctrl ‘V’ copying and pasting the code is that reusable code? Yes, it is also code reusability if you worked in ‘C’ or ‘C++’ languages then you know about header files, #include ‹io.h› this is actually does copying and pasting the code, the complier does that. But i didn't mean about this.

After Microsoft came up with .dll Dynamic Link Libraries then copying and pasting the code is gone away.

So write the code in such a manner that it can be reused. Because your manager should say that you did a Better Programming for that :-). Ok guys, I am going to sleep now. See you in my Next Blog.