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
103
votes
4 answers

How to structure a express.js application?

Is there a common convention for breaking up and modularizing the app.js file in an Express.js application? Or is it common to keep everything in a single file?
Eric the Red
  • 5,364
  • 11
  • 49
  • 63
39
votes
7 answers

How can I make a function that returns a function?

Big picture: I have a module with functions and a module with procedures and functions over those functions. When I combine two functions (from function's module interface): double f1(double alpha, double x); double f2(double beta, double x); In…
MCL
  • 566
  • 4
  • 16
33
votes
9 answers

What are the differences between information hiding and encapsulation?

What are the differences between information hiding and encapsulation? I have read that encapsulation means bundling data and the procedures that should operate on them together. If that is so, does the following class achieve encapsulation? class…
user1720616
  • 543
  • 1
  • 6
  • 13
31
votes
7 answers

What is the best way to manage configuration data

I am working on a product suite which has 4 products. Right now, all of the configuration data is either in the XML or properties files.This approach is not maintainable as we have to manage different configuration file for different environment(for…
Shekhar
  • 5,771
  • 10
  • 42
  • 48
31
votes
8 answers

Modular web apps

I've been looking into OSGi recently and think it looks like a really good idea for modular Java apps. However, I was wondering how OSGi would work in a web application, where you don't just have code to worry about - also HTML, images, CSS, that…
user7094
30
votes
10 answers

How to make code modular?

I have some Java programs, now I want to find out whether it is modular or not, if it is modular then up to what extent, because modularity can never be binary term i.e. 0 or 1. How do I decide that particular code is modular upto this much extent.…
user175498
29
votes
2 answers

How can one import only variables and mixins from Sass stylesheets?

I'm using the Zurb Foundation 4 (S)CSS framework, and I'm running into an issue of massively duplicated styles. This is because in every file that I @import 'foundation' in, all styles from Foundation are also imported (rules for body, .row, .button…
dymk
  • 887
  • 2
  • 10
  • 21
27
votes
6 answers

Can OSGi help reduce complexity?

I saw lots of presentations on OSGi and i think it sounds promising for enforcing better modularization. Apparently "hotdeployment" and "running different versions of x in parallel" are mayor selling points too. I wonder whether what OSGi promises…
raoulsson
  • 14,978
  • 11
  • 44
  • 68
26
votes
5 answers

How to design an application in a modular way?

I am looking for pointers, suggestions, links, warnings, ideas and even anecdotical accounts about "how to design an application in a modular way". I am going to use python for this project, but advice does not need to necessarily refer to this…
mac
  • 42,153
  • 26
  • 121
  • 131
24
votes
2 answers

Good implementation of scalable JavaScript application architecture (Sandbox by Nicholas Zakas)?

I recently watched a good video with regards to a modular JavaScript architecture including a sandbox. I was wondering if there is anything that's been implemented in the wild? Is the framework downloadable or an implementation of it? The videos…
Martin
  • 23,844
  • 55
  • 201
  • 327
23
votes
11 answers

Some solid OOP criticism?

I want to ask you to provide me with some articles (maybe books), which you possibly have found very convincing criticising the OOP methodology. I have read some in the WWW on this topic and I didn't really find a 'definitive demotivator'. It's not…
Bubba88
  • 1,910
  • 20
  • 44
22
votes
1 answer

Angularjs Argument is not a function got string

I am a newbie to angularjs. I am building an application where my home page will have a list of posts. I thought of using angularjs for two way binding for that page alone. I started with a sample page but ran into issues here itself. My sample…
Anirudhan J
  • 2,072
  • 6
  • 27
  • 45
21
votes
6 answers

CMake: how best to build multiple (optional) subprojects?

Imagine an overall project with several components: basic io web app-a app-b app-c Now, let's say web depends on io which depends on basic, and all those things are in one repo and have a CMakeLists.txt to build them as shared libraries. How…
John Zwinck
  • 239,568
  • 38
  • 324
  • 436
21
votes
2 answers

How to use 3rd party library in Java9 module?

I have some java9 module that uses 3rd party library that is not Java9 module, just a simple utility jar. However, the compiler complains that it can't find a package from my utility. What should I do in module-info.java to enable usage of my 3rd…
igr
  • 10,199
  • 13
  • 65
  • 111
19
votes
4 answers

Packaging Facelets files (templates, includes, composites) in a JAR

Is it possible to put JSF2 Facelets files with common content into a JAR to use it from other web applications inside e.g. , , , etc? If yes, how can I achieve this? Is some extra…
Fabio B.
  • 970
  • 2
  • 14
  • 29
1
2 3
48 49