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
3
votes
2 answers

What is a good way to show the relationship between loosely coupled classes and interfaces?

I have introduced the SOLID principles to my team and they understand and are excited about using the principles. S - SRP - Single Responsibility Principle O - OCP - Open/Closed Principle L - LSP - Liskov Substitution Principle I - ISP - Interface…
3
votes
1 answer

Separation Of Concerns with Symfony Forms

I've been trying to use the Symfony 2 forms lately, which are quite good for simple forms. But -for use in select boxes or something similar- I often want a list of associated entities in the form. In several blogposts and Symfony docs, they suggest…
Stivni
  • 437
  • 1
  • 6
  • 15
3
votes
4 answers

How is ENFORCED the separation of concerns in ASP.NET MVC?

I have been studying, playing with and working with ASP.NET MVC since Preview 1 in 2007 (december). I have been a fan of it since 2008 and I support it all the way. However I keep hearing and reading "ASP.NET MVC enforces a strict separation of…
Andrei Rînea
  • 20,288
  • 17
  • 117
  • 166
2
votes
2 answers

Initializing a Struct passed by refence with a Macro

In the past, I have used a macro for initializing an Struct with this scheme: node.h typedef struct Node_TypeDef { uint16_t netId; const uint8_t UID[6]; }Node_TypeDef #define NODE_INIT \ { …
2
votes
2 answers

Applying Liquibase migrations for integration tests on a multi module gradle project

I am modularising a monolith developed in Java, It utilizes the Micronaut framework and Gradle as a Build tool. As the title suggests, It utilizes Liquibase for database migrations. The old structure: It's a standard single Gradle java project with…
hardik_pnp
  • 29
  • 1
  • 5
2
votes
2 answers

How to pass a attribute as parameter in C#?

I need to implement a sort using 4 different attributes in a same object type in C#. lets say the object Student has name, id, birthdate and grade. How do i reuse the code for sorting each of them. I have managed to sort by name, how do i reuse the…
2
votes
1 answer

Asp.Net Core Modular Application

I am building asp.net core 2 modular application, I was having one module but now I am about to create another module and I get to the point that I need to develop a communication between the two modules, I need to use a model class from module A in…
malballah
  • 681
  • 1
  • 9
  • 17
2
votes
1 answer

Script Programming: Using arguments to develop functions in separate files

When programming in a scripting language (Python, Perl, Ruby or R), I try to write functions and keep them in separate files to keep my code modular. For debugging, I often put the arguments of the function inside the function body and un-comment…
NicolasBourbaki
  • 853
  • 1
  • 6
  • 19
2
votes
0 answers

asp.net core and angular 5 modular application

I'm working on a big project. I'm using asp.net core 2, web api and angular 5 (spa). The project is somewhat modular but not in front-end part. What I need is that: There is a container that is main page and include some basics like nav-menu and…
Hamix
  • 1,323
  • 7
  • 18
2
votes
2 answers

How do you make variables and dependencies available in all modules of a node app?

I built a node application recently and have decided to modularize it. I'm requiring all the dependencies, declaring an array that is manipulated by other modules as the program runs, and executing the application in the app.js file (there's not…
StephenStephen
  • 114
  • 1
  • 5
2
votes
2 answers

How can I make a "modular" Java program that updates while running?

I've been playing around with the idea of creating a program that can perform multiple different tasks while being monitored by a central thread. The idea is to create a core program that will look for and load separate modules when it runs/while…
DGolberg
  • 2,109
  • 4
  • 23
  • 31
2
votes
3 answers

ZF2 Dashboard - need to add views from multiple modules

I'm trying to add a Dashboard to my ZF2 Application. I want to build up the Dashboard by collecting views from multiple modules. Every module I add to the Application needs to add it's own view to the Dashboard. I'm not sure which would be the best…
ibo_s
  • 425
  • 4
  • 13
2
votes
1 answer

What is the best place to store user configurations settings

I am trying to develop a modular web aap using asp.net mvc 4. My question is that what is the best place to store the user settings, configuration and user access. Whether it is good to store it in db or good to store it in xml file.
Saurabh Palatkar
  • 3,242
  • 9
  • 48
  • 107
2
votes
1 answer

Using Entity Framework in a modular application

I'm currently working on an MVC-project that should be highly modular. For example I want to have a user-module, a menu-module and a page module. Because the modules need to be highly re-usable in different visual studio solutions I create separate…
mhtsbt
  • 1,029
  • 2
  • 12
  • 26
1
vote
1 answer

Using ServiceLoader to get All Instances of an Annotation

All! I know that long questions are frowned upon, but this is the only way I will be able to get my problem adequately explained. So, I apologize up front for the length of this question. I am working on a modular project that will be extensible via…