Skip to main content

Modular Programming

Modular programming is the practice of breaking down a program's functionality into independent interchangeable modules. Each of these modules have everything necessary to execute only that aspect of the desired functionality, in the case they are needed. 
Modular programming is important because it creates a structure that keeps the code organized and easier to maintain. For example, if you had to change an object used throughout a program, with modular programming you would only have to find the module where the character was coded. Compared to not having modularization, if you wanted to accomplish this you would be required to read the code line by line having to find and edit that character everywhere it was used.
Programming languages like C#, java, and C have this implemented by having different methods or identifiers. Once that is created then you are able to use those methods elsewhere in your code, which also saves time by not having to re-write the method all over again.
Sources:

https://www.techopedia.com/definition/25972/modular-programming

Comments

Popular posts from this blog

The use of libraries are an important part of coding.

A library in programming code is a collection of similar objects that are stored for occasional use.  It is a collection of reusable and precompiled programming routines that the programmer can "call" when writing code so that the programmer can just use and not have to write it. Frameworks are reusable software environments that provide functionality to facilitate development of software applications, products and solutions. They can include compilers, code libraries, tool sets and application program interfaces to help the development of projects and solutions. A namespace are structured hierarchies that serve to allow the reuse of different names in different contexts, and have a purpose of avoiding name collisions between multiple identifiers that share the same name. A class is like a blueprint, it is basically set of instructions that define how an object looks and its specifications, they can store things and do things. Finally method is a series of statements that ...

WHILE and IF statements

A while loop statement will repeatedly execute a statement as long as the given condition is true. If the while loop's condition is set to true then the program will go into the loop, and will keep looping as long as that condition remains true. For example: int score = 15; while (score  <  20)       {             Console.WriteLine("value of score: {0}"), score;              score++;        }        Console.ReadLine(); In this example the program will go into the loop for as long as the value of score is less than 20. Once it's in the loop it will increment the value of score by one, then it will check if a is still less than 20. Once the value of score reaches 20, it will no longer go into the loop as the condition will no longer ...

Why I am at MATC

Hello! My name is Noel Dominguez, I am 20 years old and I am currently enrolled in the IT mobile application developer program at MATC.  I am at MATC because since I was little I had a passion for technology. I  was always seen as the “techie” guy from my family. I always liked taking old electronics apart just to see how things worked from the inside and ever since I was introduced to computers my love for technology grew even greater. While at high school that part of me only got stronger, my passion led me on a iphone repairing business that involved the tweaking of iphones internally(jailbreak) and externally. After graduating high school I devoted my time and developed a game based on a twitter trend. I managed to publish this game on iOS, Google and Amazon app stores within a few months, not to mention achieving this with not one clue on how to code. I am currently in my second semester in the IT mobile apps developer program, not only because technology has been a p...