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

Object oriented design in Node.js

I'm struggling with the async flow of Node.js. Assume you have class below: function myClass() { var property = 'something'; var hasConnected = false; this.connect = function(params) { //Some logic that connects to db and in callback…
Ali
  • 5,338
  • 12
  • 55
  • 78
3
votes
4 answers

Laravel modular structure

I am developing an application using Laravel. However I have question about the modular structure of the application. Here's an example. Suppose I need a module called "featured items"; This is a small module that should be included in some…
Sinan
  • 5,819
  • 11
  • 39
  • 66
3
votes
2 answers

Java web application modularize with spring

I'm trying to build a project structure like this: Project |--Web_module.war |--Data_module.jar(Spring) |--Util_module.jar |--other public api... which means, different modules should be packed into different jars, so i have to have…
Jaiwo99
  • 9,687
  • 3
  • 36
  • 53
3
votes
1 answer

Making requirejs modules AMD compliant

I'm currently building an app where the frontend is doing a lot of the heavy lifting. To keep everything neat and organised I'd like to use requirejs. However, to use require.js to its' full extent all the modules I use should be AMD…
Julian Krispel-Samsel
  • 7,512
  • 3
  • 33
  • 40
2
votes
3 answers

Exception throwing from C# modules

Our application is modulraized (Group of modules doing specific things). The modules have event handlers. These events could be fired from other modules or the application menu. Situation: Module A(which have UI) recieves an event "deleteitem". The…
Jimmy
  • 3,224
  • 5
  • 29
  • 47
2
votes
2 answers

Modular code structure in Lua

I've been working with Love2d recently to build a Conway's Game of Life implementation. I really like the framework, but I haven't been able to figure out how to modularize my code, which I feel is crucial to solid code structure. What I'm wanting…
Benjamin Kovach
  • 3,190
  • 1
  • 24
  • 38
2
votes
1 answer

Do any languages provide support for "true" modularity within a process?

I've been reading Principles of Computer System Design (Saltzer & Kaashoek), and one of the early chapters is on modularity. For example: Different modules should only interact through specified interfaces Modules should be constructed to expose as…
Li Haoyi
  • 15,330
  • 17
  • 80
  • 137
2
votes
1 answer

How to create a modular JSF 2.0 application in Netbeans?

I have a JSF application that I'd like to split up into modules. Splitting up the Java code is easy...splitting up the JSF pages (which can reference one another) is not. I think BalusC's answer in this post is leading me down the right track: How…
wsaxton
  • 1,030
  • 15
  • 34
2
votes
1 answer

Using igraph: community membership of components built by decompose.graph()

I would appreciate help with using decompose.graph, community detection functions from igraph and lapply. I have an igraph object G with vertex attribute "label" and edge attribute "weight". I want to calculate community memberships using different…
npobedina
  • 331
  • 3
  • 14
2
votes
3 answers

Use Zend Framework to create a flexible base application

We are developing an e-commerce platform utilizing the Zend Framework. We have several instances of the application up and running, using the same code base. Config settings are used in order to differentiate the various shops. The challenge we are…
Agora
  • 202
  • 1
  • 6
2
votes
1 answer

MVC programming practices

I'm working on some new software, and I'm trying to make it as modular as possible. I have been coding for a while..but I lack some key principles which I am learning as I go along. In trying to make my current project modular, I am using the…
PTBG
  • 585
  • 2
  • 20
  • 46
2
votes
1 answer

Using an entire Symfony 2 app as a plugin for native php project?

I have an old project which I want to add user management to. Symfony has the FOSUserBundle which makes user straightforward. Is there a way to integrate Symfony in the old project so that I can benefit from the UserBundle?
antitoxic
  • 3,746
  • 1
  • 37
  • 46
2
votes
1 answer

Is modularity important in libraries?

I'm about to start writing a library that aims to be as lightweight as possible. This library will have several modules that can act independently, but can still work together to achieve a larger goal if the user so chooses. Should I provide a means…
Maxpm
  • 24,113
  • 33
  • 111
  • 170
2
votes
1 answer

Modularity - osgi and data

I am busy with R&D with osgi and its role in the technology stack. I buy into the whole modularity and benefits this gives from a software component standpoint. Now, what I am battling to get my head around is the practical elements of the following…
Roger
  • 21
  • 3
2
votes
3 answers

most appropriate form to make re-usable Ruby on Rails code more re-usable?

I make a lot of rails applications, and there seems to be lots of way to make code reusable. Among the things I reuse are the following: css files, initializers, views/shared/ partials admin images application helpers haml view…
pixelearth
  • 13,674
  • 10
  • 62
  • 110