Introduction to Procedural Programming in QBASIC - Part II

In my last post I had briefly discussed about procedure programming. Hope that might have enlightened your knowledge of Procedural Programming in QBASIC. Today I will discuss, its significance, need and benefits.
I would like to start with a very popular verse, "Divide and Conquer"- this was practised by British Empire in 19th and 20th century; you might have learned in History. We know this didn't sustain British Empire but believe me when you practice this in programming (viz. are procedural or modular programming approach) you will feel more comport in writing larger size program after you understand and learn the technique.

With the advent of development and progress in the technology; faster and high-end processors development made developer think larger problems to be solved through programming. When such time came then structure programming failed and brought new difficulties in writing larger sized programs. There were lots of hards like complexities in debugging, repetition of codes, unmanageable codes, unnecessary growth in size of programs and primarily non-integrity codes were the major problems. There was also need of newer methodology of programming and mean time new dimension in the field of programming was introduced i.e. Procedural Programming Approach (often considered as modular programming in general words but keep it in mind the module (modular) and procedure (procedural) are different in the context of QBASIC. Procedure is small-size division whereas as Module is large-size division but both of them are division of blocks of code into very manageable form).
A whole program is breaked (synthesized) into manageable small segments (procedures/subprogram) either functions or sub-routine procedures according to need so that there is reusability of these procedures. From this line importance of procedures can be easily estimated. Let us outline these importance or benefits of procedure (procedural) programming approach:
  (i) Manageable size of code from division into several segments
  (ii) Reusability of codes which reduces size of program by significantly reducing lines of codes without  degrading performance rather optimizing performance.
  (iii) Higher integrity in the codes as there is nearly zero repetition of same set of codes
  (iv) Larger sized programs easy to develop, debug and maintain.

Though this is not enough so many new paradigm of programming are introduced recently and pracised worldwidely but you can say they follow procedural approach with futher enhancements and features.

At last but not least we must admit that procedural programming paved a strong cornerstone in the field of programming.

Hope you enjoyed reading this post. In next post you can find terms and terminologies, statements and functions of QBASIC associated with procedural programming and also how to write procedure programs.

Till then bye. Have a good time!!!

No comments:

Post a Comment