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
8
votes
1 answer

How to decide whether to parameterize on the type-level or the module-level when designing modules?

I'm working towards a deep understanding of ML-style modules: I think the concept is important and I love the kind of thinking they encourage. I am just now discovering the tension that can arise between parametric types and parametric modules. I am…
Shon
  • 3,989
  • 1
  • 22
  • 35
8
votes
1 answer

How to create layered project structure in c++ using qmake

Under windows using MinGW, C++11, Qt 5 and qmake I have following project structure: /my-project my-project.pro /my-app my-app.pro main.cpp /module-a module-a.pro modulea.h modulea.cpp /module-b …
marm
  • 121
  • 6
8
votes
3 answers

Should I create DLLs for modularity?

I'm working on creating an app that will parse MSDN articles for meta-information such as the article title and other articles that are in the same collection. This app also has a GUI front-end. I'm interested in making this program more modular by…
Leonard Thieu
  • 785
  • 1
  • 7
  • 21
8
votes
2 answers

Graph modularity in python networkx

I have created a graph in python lib NetorwkX and I want to implement a modularity algorithm in order to cluster the nodes of my graph. I came across the following code: import community import matplotlib.pyplot as plt import networkx as nx G =…
snake plissken
  • 2,649
  • 10
  • 43
  • 64
8
votes
1 answer

Which effects does the Dependency Inversion Principle have to a project structure?

In case I want to use the DIP to develop a hypothetical modular C++ project. Because of the modularity I choose to implement one specific feature completely in one library A. Another library B (or two, or three ...) is using this feature (e.g. a…
8
votes
1 answer

WPF unity Activation error occured while trying to get instance of type

I am getting the following error when trying to Initialise the Module using Unity and Prism. The DLL is found by return new DirectoryModuleCatalog() { ModulePath = @".\Modules" }; The dll is found and the Name is Found #region Constructors …
Traci
  • 908
  • 1
  • 13
  • 31
8
votes
1 answer

Modularize AngularJS application : one or multiple AngularJS modules?

I try to build a modular application using AngularJS. My first idea is to group each module by functionnality with this kind of folder structure : /core controllers.js directives.js app.js /modules /users controllers.js …
tomahim
  • 1,298
  • 2
  • 11
  • 29
8
votes
1 answer

Clauset-Newman-Moore community detection implementation

I am trying to implement the above community detection algorithm in Java, and while I have access to C++ code, and the original paper - I can't make it work at all. My major issue is that I don't understand the purpose of the code - i.e. how the…
Zack Newsham
  • 2,810
  • 1
  • 23
  • 43
8
votes
8 answers

Overcoming bad habit of "fixing it later"

When I start writing code from scratch, I have a bad habit of quickly writing everything in one function, the whole time thinking "I'll make it more modular later". Then when later comes along, I have a working product and any attempts to fix it…
michael
7
votes
9 answers

How to implement code in a manner that lessens the possibility of complete re-works

I had a piece of work thrown out due to a single minor spec change that turned out not to have been spec'ed correctly. If it had been done right at the start of the project then most of that work would have never have been needed in the first…
lsl
  • 4,371
  • 3
  • 39
  • 54
7
votes
7 answers

How to make a desktop application modular?

How do you make a Java desktop application modular? How should the modules be classified?
setzamora
  • 3,560
  • 6
  • 34
  • 48
7
votes
1 answer

ANTLR: call a rule from a different grammar

is it possible to invoke a rule from a different grammar? the purpose is to have two languages in the same file, the second language starting by an (begin ...) where ... is in the second language. the grammar should invoke another grammar to parse…
zhujik
  • 6,514
  • 2
  • 36
  • 43
7
votes
1 answer

Network Modularity Calculations in R

The equation for Network Modularity is given on its wikipedia page (and in reputable books). I want to see it working in some code. I have found this is possible using the modularity library for igraph used with R (The R Foundation for Statistical…
ale
  • 11,636
  • 27
  • 92
  • 149
7
votes
3 answers

Refactoring: Making a game engine more modular and how

My game engine consists of a range of loosely coupled modules, which can be loaded and unloaded. Some examples are: The base module, handling window management and responding to OS events, entity manager, Lua manager, physics manager. Right now,…
Jarx
  • 71
  • 2
7
votes
1 answer

Modular applications with Entity Framework Code Only and ASP.NET MVC

By modular applications I mean applications in which base functionality and data model can be extended without modifying core application code. It's a popular approach with eg. open source CRMs like SugarCRM or VTiger. This approach may be…
aaimnr
  • 1,646
  • 1
  • 17
  • 31