DELAPARRA
Index
Color
NL
Category: Programming paradigms

Modular Programming

Explained by Updated

What is Modular Programming?

Modular Programming: Splitting procedures into separate files/modules. An improvement over monolithic procedural code — functions are reusable across programs. Modular programming means splitting a program into separate modules, each with a clear responsibility and a defined interface. A module for invoices, one for customers, one for email, each usable without knowing the others' insides.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Modular Programming

How is Modular Programming used in practice?

It was a big step forward from long programs where everything could touch everything. Modules can be understood, tested and reused on their own.

What should you keep in mind with Modular Programming?

The principle still guides good architecture today. In a Laravel application, it might mean grouping code by business area rather than only by type, so all invoicing code lives together. Keep the connections between modules few and explicit. When every module reaches into every other, you have the complexity of separate parts without the benefits, and changes ripple unpredictably through the code.

At a glance

CategoryProgramming paradigms
Explained by
Updated

More Programming paradigms terms

All terms starting with M

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.