Questions tagged [modular-design]

Modular programming (also called "top-down design" and "stepwise refinement") is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.

Modular programming (also called "top-down design" and "stepwise refinement") is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.

Conceptually, modules represent a separation of concerns, and improve maintainability by enforcing logical boundaries between components.

Modules are typically incorporated into the program through interfaces.

A module interface expresses the elements that are provided and required by the module. The elements defined in the interface are detectable by other modules.

The implementation contains the working code that corresponds to the elements declared in the interface.

Source: Wikipedia

116 questions
63
votes
6 answers

Angular project structure best practice

This is the directory structure of my Angular project. Angular applications can get big with many different types of components. What is the best practice for organizing Angular applications? -app -layout -home-layout -header …
pierre
  • 795
  • 1
  • 7
  • 17
14
votes
2 answers

Using modular design pattern in Javascript with DOM selections

I have been following the Modular Design Pattern for quite some time now and find it extremely useful as it helps in the well maintenance of code & separation of blocks into modules. Regular usage of the module structure with jQuery has led to most…
nashcheez
  • 5,067
  • 1
  • 27
  • 53
13
votes
3 answers

Create a Plugin-Based System Like Wordpress With Laravel / PHP

This question has been bugging me for quite some time now, I want to create a cms, a School Mnagement System to be more specific, and what matters to me the most, is making this system plugin based, in a way that administrators can download and…
Arsi
  • 191
  • 1
  • 1
  • 10
8
votes
8 answers

How to separate data validation from my simple domain objects (POCOs)?

This question is language agnostic but I am a C# guy so I use the term POCO to mean an object that only preforms data storage, usually using getter and setter fields. I just reworked my Domain Model to be super-duper POCO and am left with a couple…
6
votes
1 answer

How to create modular plug-ins for Delphi

Using Delphi 2010, I am needing to write a program to support modules, or plug-ins. Although a little contrived, assume I have an app which converts datafiles/text files. It will support 30 input formats and those same 30 formats as outputs. The…
user1009073
  • 3,160
  • 7
  • 40
  • 82
5
votes
1 answer

What is a module

I have trouble understanding the concept of modules. Are they translation units? Are they like .ccp files and .h files?. In my textbook it is described as, "A modular design consists of a set of modules, which are developed and tested separately. …
sangmin park
  • 547
  • 3
  • 7
  • 16
5
votes
2 answers

argument type "X" is not assignable to parameter type "Y"

I have an issue with the webstorm IDE. It seems like that webstorm always shows the error of invalid argument in the IDE, but the typescript compiler do not show such error; I'm starting to believe that this issue is with the IDE. I have the…
Daniel Mahadi
  • 848
  • 1
  • 10
  • 14
5
votes
2 answers

What is meant by Modular in Sinatra?

I was wondering if someone could simplify the explanation for what Modular is within a Sinatra app. I see that there is the classic setup and a modular setup within sinatra, but from reading the docs I can't quite grasp what Modular is doing. I…
Richlewis
  • 15,070
  • 37
  • 122
  • 283
4
votes
2 answers

Writing modular codes in python

Hi I have a simple GUI as below with 2 buttons. I have written a method that changes the text on the button once the button is clicked. I want to make the method modular and general in order to apply the method to any button without rewriting. In…
dnth
  • 879
  • 2
  • 12
  • 22
4
votes
2 answers

How to write simple, extensible, modular Javascript

I need a mechanism whereby people can extend my base code with their own modules - but I'm struggling to come-up with a simple mechanism to do that. Example: a function called 'test' which users can extend. Each user module is loaded after the…
user834595
3
votes
1 answer

Struts 2 modular web application

I am using Struts 2 web application. It has lot of modules and functionality. I want to enable or disable (or remove) some modules based on customer requirement. But in Struts 2 under single WAR file deployment how can I make it as modular? Is it…
kannan
  • 571
  • 2
  • 6
  • 8
3
votes
2 answers

How do I modularize my Node.js, express project?

I have created a API for different webpages with some CRUD functionality for POST, GET, etc. methods using Node.js, express and mongoose. I also have a big app.js file, where my routing logic and functions for CRUD methods reside. So in the app.js…
MMMM
  • 3,320
  • 8
  • 43
  • 80
3
votes
1 answer

ASP.NET Core 1 Modular (Plugin) Architecture?

I'm designing an architecture for a web application product using ASP.NET Core 1. I want the architecture to be modular and plugin. I want each module to be separated from the main application, and can be easily toggled ON and OFF. I found this open…
3
votes
2 answers

Design Portal Container

I am under a scenario where I have to build a portal container in HTML5 and Javascript. This container will be provided with 'n' number of widget URLs and container is responsible to load them through Ajax in DIVs (not in iFrame). Now the question…
Jaffy
  • 575
  • 1
  • 6
  • 15
3
votes
2 answers

Using Ninject with ServiceLocater pattern - good or bad

I'm about to get used to Ninject. I understand the principles of Dependency Injection and I know how to use Ninject. But I'm a little confused right now. The opinions drift apart when it comes to the Service Locator pattern. My application is built…
SharpShade
  • 1,761
  • 2
  • 32
  • 45
1
2 3 4 5 6 7 8