Monday, August 24, 2009

Why the function is a programmer's best friend?

Function is a programmer's best friend because at least all these can be achieved with the help of functions:
  • Well-chosen function names make the program more understandable and say something about the functionality
  • Functions save time and effort. Often used actions need to be programmed only once
  • Errors need to be fixed in one place only
  • Changing the functionality of the program is easier when the change needs to be done in only one place
  • Functions are an important tool in structuring the program. The program can have a better manageable structure (divide and conquer) with the help of functions

Reference: blog, ddj, scribd

Previous post

Next post

No comments:

Post a Comment