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
1
vote
2 answers

Webpack throws a weird syntax error in JS file

I have a simple file structure for my JS files: bundle.js src | -- main.js -- forms | -- forms.js My main.js file looks like this: let forms = require('./forms/forms'); And the forms.js files looks like this: export default class…
erol_smsr
  • 1,454
  • 4
  • 24
  • 49
1
vote
0 answers

Sitemap generation for an angularJS app with separate front and back end

I have an application having separate front and back end. Front end is made in angularJS and backend is in Java. My application is generating dynamic data quite frequently and I want to introduce SEO to my app, for that I want to create…
Muhammad Ahsan
  • 249
  • 4
  • 13
1
vote
2 answers

Self anonymous function running bound events on load

I am trying to follow the modular js design pattern (revealing) and I have a question. When I bind event listeners like so: $addClient.submit(ajaxCall); The event ajaxCall does not run on load. However, when I add parenthesis, like…
dericcain
  • 2,182
  • 7
  • 30
  • 52
1
vote
2 answers

JS Modular Design - context issue

I am just starting to learn the Modular Design principles and I believe I am not understanding the context of one of my methods. In the console, I am getting Uncaught TypeError: Cannot read property 'val' of undefined - line 19. I am using Firebase,…
dericcain
  • 2,182
  • 7
  • 30
  • 52
1
vote
1 answer

MVC Ninject: How to add NinJect bindings from an MVC Area project

I've been using this blog example: http://blog.longle.net/2012/03/29/building-a-composite-mvc3-application-with-pluggable-areas/ I have the concepts working in my solution. However, I'm trying to figure out a good way only add bindings to the…
1
vote
0 answers

Using Unity in MVC while maintaining SoC

I'll give the simplified version of my project solution. I have the following projects in my solution. MVC, Core, Data, Common. Common holds enums, static classes, data transfer objects, etc. No logic, no assemblies. The MVC layer can access Core…
1
vote
1 answer

Modular Compiler in Python

I am writing a compiler in Python, using the PLY (Python Lex-Yacc) library to 'compile' the compiler. The compiler has to go through a lot of rules (the number of just the core rules is eventually going to be a little less than a hundred, and they…
shardulc
  • 311
  • 1
  • 13
1
vote
2 answers

Injecting form options and input tags from the model

How do I add options and fields to my form generated by a builder with form_for @user in the model? (ie. without touching the HTML) The reason I want to do that is that I am adding a pluggable module to my model, and I want it to automatically (a)…
Jonathan Allard
  • 18,429
  • 11
  • 54
  • 75
1
vote
3 answers

how to use vector of objects in different files

how can i access a static vector variable in main file which is declared in header file and populated in source file.Actual code is little bit big so below is an example what i have tried. class.h class a{ private: int x; public: …
Rahul
  • 47
  • 1
  • 7
1
vote
0 answers

Developing modular C++ program with communication between plugins

I'm trying to figure out some C++ programing and OO concepts. What I want is i want to have a core exe which scans a folder for dll's then loads it's start function and launches the plugin. This has already been developed and is running fine. I'm in…
baklap
  • 2,145
  • 6
  • 28
  • 41
0
votes
2 answers

Modular design pattern - Java spring boot

I am trying to implement the modular design using Java Spring boot. My application has multiple modules, let's say it has modules A, B, C, and D. I would like to manage modules dynamically according to my client's order. For example, If a client…
Lucy_learning
  • 97
  • 2
  • 11
0
votes
0 answers

Is it better to have plugins loaded at runtime or direct code integration?

I'm in the process of making an app which I was hoping could have optional modules/plugins depending on what the user needs. Concretely, the host application would be lightweight (mostly a text/markdown editor) and I'd add the ability to use…
catharsis
  • 23
  • 1
  • 6
0
votes
0 answers

What does "design decision" means when talking about modular design?

Please, I am reading about modular design in software, but I get a litle confused when the term "design decision" is used, especifically I am reading the book "A Philosophy of Software Design" by Ousterhout, John. This paragraph is confusing to…
0
votes
1 answer

Error compiling modular code in VSC using gcc

I've a problem compiling the following programm: // hauptteil.c (main part) #include "nebenfkt.h" #include #include int main (void) { int x =10; int ergebnis=0; ergebnis =ver(x); printf("Doubled number: %d",…
vukstudent
  • 23
  • 3
0
votes
1 answer

REST app dependency structure using NestJS

So I'm writing a pretty big RESTful web-app and I opted for NestJS. So far I like it, I like the modular structure with DI, and I find it very appropriate for a REST app. My general structure is basically a number of modules for the "main"…
Itay Davidson
  • 55
  • 1
  • 6