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

How to create modular class list property

I may be asking the questions wrong, since I haven't been able to find anything online on this... Essentially my goal is to have a move class defined in project\Schemas\Move.cs: public class Move { private int power; private float accuracy; …
Ethan
  • 787
  • 1
  • 8
  • 28
0
votes
1 answer

How to run JSON files and function on order

In my code, I want to load 2 JSON files first, then based on the result of the them, run another two JSON files, and then run a sequence of functions such as render, DOM etc. I want to save the JSON data in variable so I can refer to them later in…
DannyBoy
  • 434
  • 5
  • 21
0
votes
1 answer

Where to put data / logic layer in front end

I've read many articles which indicated that I should avoid putting complex logic into my HTML template, so my question is if I write a module which needs some specific attribute or class name based on the type of DATA loading to my page should I…
0
votes
1 answer

Knoockout computed observable doesnt update

The following is a computed observable, and i am calling its write function, but the write doesnt update the value for the computed. self.pagesToBeDisplayed = ko.computed({ read: function () { var value = otherFile.PerformWork(); …
0
votes
0 answers

JavaScript file with useful constants shared by many modules in modern JS

I just started porting my JS application to modern (modular) JavaScript. I am not very expert in this language, but in Python I normally have a file with many useful variables or costants which are shared (imported) among multiple other scripts…
umbe1987
  • 2,894
  • 6
  • 35
  • 63
0
votes
2 answers

What's the best approach for modular apps UI test scripts?

I'd like to know if any of You have experience in automation UI testing of modular-like apps. The whole app is like all typical CRM-related apps, where based on Your personal client needs You just put together some of the available modules (that…
0
votes
5 answers

my php code runs, loads, but no outputs

I was trying to create a program in which simply generates license keys. Here it is:
amirali
  • 1,888
  • 1
  • 11
  • 32
0
votes
2 answers

In multiple file programs and inclusion, how the function definitions get included into the main program?

If I have a header file List.h that contains the prototypes of the functions related to a list, the definitions of the functions are in a source file (c file) List.c. Both List.c file and the main.c file(or any source file representing the main…
Ahmed Hesham
  • 43
  • 1
  • 6
0
votes
1 answer

Seeding in MATLAB with rng with parfor

Suppose I have the following code in MATLAB: clc; clear; myseed = rng(1); c = 1; d = 2; parfor i = 1:1000 a = randn(200,1); b = randn(50,1); c*(sum(a)+sum(b)); end parfor i = 1:1000 a = randn(200,1); b = randn(50,1); …
yurnero
  • 315
  • 2
  • 9
0
votes
0 answers

Maven Multi-web application with shared modules

I have multi module web application: Parent |_common |_dao |_service |_web (war) And i want to create a new project that contains only scheduled tasks, but it depends on the modules above (except the web module). I have create a new web module in…
Sidaoui Majdi
  • 399
  • 7
  • 26
0
votes
1 answer

How to develop OSGi software and deploy in different implementations?

I am starting develop modular apps with OSGi framework. My first concern is if I can develop using felix dependencies in my source code then later run my code in Concierge. I looked for Concierge examples over the Internet, but there is no a good…
rod.dinis
  • 1,233
  • 2
  • 11
  • 20
0
votes
1 answer

C++ data chunk in base class

I'm trying to write a modular audio-processing aplication. Modular means, well, I have 'modules' (I call them nodes), which have inputs and outputs (there are a few different types, which are color-coded, for example green means an audio output,…
Ben
  • 201
  • 1
  • 10
0
votes
1 answer

How to pass a pointer to each functioning using modular approach to C

I wrote code into one file and it compiled and ran, but I am supposed to turn in it in pieces called modular code where u put each functions in separate .c files with a .h indicating includes and prototypes, but I am having a hard time doing so…
John Meff
  • 23
  • 5
0
votes
2 answers

How do i save a string and then use is as a variable name?

I am trying to save a string variable and then use this variable as an other variable. I am saving a string in the "name" variable that can be "weekly", "monthly" or "quarterly". and then use is as a "this.weekly" but using the "name" reference.…
Imnotapotato
  • 5,308
  • 13
  • 80
  • 147
0
votes
1 answer

Click event results an error `TypeError: this.$varName.on is not a function` which isn't a function

I have this exact code: Set Schedule