Questions tagged [modularity]

Modularity describes the degree to which a system’s components may be separated and recombined. It refers to both the tightness of coupling between components, and the degree to which the “rules” of the system architecture enable (or prohibit) the mixing and matching of components.

Modular programming is a software design technique that increases the extent to which software is composed of separate, interchangeable components. This is done by breaking down program functions into modules, each of which accomplishes one function and contains everything necessary to accomplish this.

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

http://en.wikipedia.org/wiki/Modularity

http://en.wikipedia.org/wiki/Modular_programming

729 questions
6
votes
3 answers

Best practice to modular programming in Laravel 5+

I'm starting a new project and I want to reuse some parts of it, mainly the stuff related to user registration and authentication. I can copy and paste all of the code but I want to use again. I know there is Package Development in Laravel but it's…
user4540007
6
votes
1 answer

Android why Fragments should not directly communicate with each other?

I have an Activity A hosting two main Fragment F1 and F2. Both F1 and F2 have nested Fragment, each with its own Listener interface for exchanging data. From what I understood from the answer to this question, the activity A: needs to know every…
Antonio Sesto
  • 2,868
  • 5
  • 33
  • 51
6
votes
1 answer

How to achieve modularity structure of app subcomponents on Android?

My Android main application will consist in a main program, with a few pre-installed modules. Then I want to offer different modules later, best would be as separate files. Modules like: location, weather, agenda. How would you accomplish this? I…
Pentium10
  • 204,586
  • 122
  • 423
  • 502
6
votes
3 answers

Efficiency passing variables to modules in a embedded c programming background

I am programming C in an embedded target. Due to the increasing complexity and testability issues, modularity is a must. At a glance, the program is a control loop. Read physical inputs using internal hardware, apply some calculations, and apply…
Manex
  • 528
  • 4
  • 15
6
votes
4 answers

Backbone.js modular setup

I am new to backbone, and I'm here to ask for a little bit of help understanding how I would go about building my current webapp project. I'm developing a modular administration panel for servers. Every single "page" of the panel should be a…
Luke Rager
  • 63
  • 4
5
votes
4 answers

What is the best way to organize source code of a large Cocoa application in Xcode?

Here is what I'm looking for: I'd like to separate pieces of functionality into modules or components of some sort to limit visibility of other classes to prevent that each class has access to every other class which over time results in spaghetti…
Mark
  • 1,447
  • 2
  • 14
  • 26
5
votes
2 answers

How could you structure and route modules in a MVC?

I'm building a MVC where everything is a module. This will allow me to separate collections of objects like forum and user modules to further organize my MVC. /blog /controller /model /view /user /controller /model …
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
5
votes
3 answers

Module moduleA not found in module source path , trying to compile

After this question was answered i published java 9 modules tutorials + examples on Github and how to run for future users : I have the below very simple structure: src │ module-info.java │ └───moduleA └───pack1 …
GOXR3PLUS
  • 6,877
  • 9
  • 44
  • 93
5
votes
4 answers

Modularity in Java: top level vs. nested classes

The Java tutorials that I read, like to use nested classes to demonstrate a concept, a feature or use. This led me to initially implement a sample project I created just like that: Lots of nested classes in the main activity class. It works, but now…
an00b
  • 11,338
  • 13
  • 64
  • 101
5
votes
1 answer

How Can I Make My Highly Modular Project Easy for End Users to Compile?

I am working on a relatively large set of serial code C-code libraries, which will then be parallelized in CUDA by my collaborators. For this project my code essentially boils down to #include "Initialize.cpp" #include "PerformMoves.cpp" #include…
Jason R. Mick
  • 5,177
  • 4
  • 40
  • 69
5
votes
1 answer

Package JSF Composite Component into JAR

When attempting to bundle our composite components into a jar and include as a dependency in another project, I followed the following answer. This works for everything except the composite component implementation. The folder structure for our…
Tony Scialo
  • 5,457
  • 11
  • 35
  • 52
5
votes
2 answers

Creating a modular and organized javascript heavy website

I'm looking for some general tips on how to keep my Javascript organized and modular. The latest javascript heavy project i've worked on looks like [the following][1] (formatted http://jsfiddle.net/wdkZd/) As you can i see i try to namespace my…
dubbelj
  • 1,150
  • 4
  • 15
  • 23
5
votes
3 answers

In Elm, is there a way to merge union types ? (for modularity purpose)

Starting from those three declarations : type SharedMsg = SharedAction type Page1Msg = Page1Action type Page2Msg = Page2Action I there a way to obtain an equivalent of the following one? Like a way to "merge" union types ? type Msg =…
AlexHv
  • 1,694
  • 14
  • 21
5
votes
2 answers

NG2 Cli module discovery and loading

Im starting to develop a front end for a completely modular backend (a vertx verticles docker cluster). The main idea/problem is to have a base ng2 application that defines a dashboard, sidemenu, other base components, and connects to the backend…
Eduardo Oliveira
  • 676
  • 8
  • 25
5
votes
2 answers

Webpack / ES6: how to import stylesheets

I see repositories like bootstrap starting to include additional tags in their package.json file such as 'style' and 'less.' How can I use these tags to import assets? package.json { "name": "bootstrap", "style": "dist/css/bootstrap.css", …
Matt
  • 59
  • 6