Jump to content

Modular programming

From Simple English Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Modular programming is a way of organizing a computer program into smaller parts called modules. Each module contains the necessary code to run one specific part of the final computer program. Modular programs are simpler to understand.[1] They are also more simple to maintain. Different programmers can each make different modules.[1] Usually, each module is designed to do only one thing.[2]

Uses

Some notable languages that use the module concept: Ada, C++, C#, D, Fortran, Go, Haskell, JavaScript,[3] Objective-C, OCaml, Pascal, Perl, PHP, Python, Ruby, Rust, and V (Vlang).[4]

References

  1. 1.0 1.1 Rama Reddy; Carol Ziegler, C Programming for Scientists and Engineers with Applications (Sudbury, MA: Jones and Bartlett Publishers, 2010), p. 266
  2. E. Balagurusamy, Programming In Ansi C, 5E (New Delhi: Tata McGraw Hill Education, 2011), p. 266
  3. ECMAScript® 2015 Language Specification, 15.2 Modules
  4. Rao, Navule Pavan Kumar (December 10, 2021). Getting Started with V Programming. p. 193. ASIN B09FKK3JL7. ISBN 978-1839213434. OCLC 1290492862.