Saturday 1 November 2014

Modular elements are important. M1

Whenever a programmer is working with a large program, he/she tends to divide the program into "chunks". Now this process of dividing a large, complex program into chunks is known as "Modularity". In C# programming language there are Modules. Modules,Functions,Procedures mean the same thing but are different in names because of the context and terminology.  In procedural programming, a complex program is divided into Procedures.

The advantage of this is that modules can be used more than once in a program, or it can't be used at all. We can single out one module from the whole complex program and test that individual module desperately to make sure it does it's desired function. One more great advantage of  modular elements is that if, for example, a company want's to make a program for some task,and the programming team has been told that this program is very complex, the team can divide the s.work load amongst themselves so that there is less time consumption and more productivity. So for example, if the team is of 6 people and there are at least 12 functions to be used in the whole program, the team would divide the programme by giving 2 modules to each person to build.
By using modular elements in a program, it reduces the risk of 2 elements being involved unnecessarily during the run time of the program. Without modular elements, we would have a hard time trying to find bugs and glitches in our complex program

A real life example can be

Humanbeing someguy= newHumanBeing();

someguy.setname ("Abbas");



No comments:

Post a Comment