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

Best .NET framework/approach for modular product?

Looking for advice on framework and approach for building a modular web application. Primary goal is to minimize need for redeployment, but redeployment would be fine on occasion. OSGI for Java seems like the right idea but I need a .NET…
Fireworks
  • 135
  • 3
  • 14
3
votes
1 answer

Ruby & Modularization - Are there any clean & easy ways to exclude included||extended modules/mixins from classes?

Stackoverflowers! I've recently begun dabbling in Ruby, and I have a few questions. First some background: I'm used to C++ and Java inheritance, and have always had a dislike for how inheritance works there in many game-related scenarios (say, a…
3
votes
2 answers

How do I create two mutual producer/consumers with internal state in Haskell?

I've got an agent that takes in states and returns actions, while keeping an internal representation of the utility of state/action pairs. I've also got an environment that takes in actions and returns state/reward pairs. I need to be able to set…
3
votes
2 answers

First steps in Python (Jython): Importing

I am about to start programming python with jython on WinXP (Later Win7). After I tried out the out of the box interpreter in the comand line, I want to try out programming standalone modules. My questions are: Where do I have to put the .py…
poeschlorn
  • 12,230
  • 17
  • 54
  • 65
3
votes
4 answers

How to remove repeating code in this method?

private static Game[] getMostPlayedGamesDo(int Fetch, int CategoryID) { Game[] r; using (MainContext db = new MainContext()) { if (CategoryID == 0) { var q = db.tblArcadeGames.OrderByDescending(c =>…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
3
votes
4 answers

How to decompose a system into modules?

The effectiveness of a "modularization" is dependent upon the criteria used in dividing the system into modules. What I want is, suggest some criteria which can be used in decomposing a system into modules.
Dhanapal
  • 14,239
  • 35
  • 115
  • 142
3
votes
2 answers

Should I require explicitly all dependencies in every file?

I am asking this for Ruby, but I guess this principle can be applied to every project with multiple files. Say I have a main file e.g. application that requires some other modules model1 and model2. Both those modules need the common module. I've…
eugeniodepalo
  • 801
  • 1
  • 6
  • 18
3
votes
4 answers

C++ and modularity: Where am I supposed to draw the line?

According to widely spread advice, I should watch out to keep my larger software projects as modular as possible. There are of course various ways to achieve this, but I think that there is no way around to using more or less many interface…
lamas
  • 4,528
  • 7
  • 38
  • 43
3
votes
2 answers

When modularising C code, within a function is there a way to loop to another function (i.e. to my main() c file)?

I'm in my first semester at university studying C programming. We've gained an introduction to modularising our code, and the basic gist of my problem is that I've created a function which prompts the user to continue or exit the program. Obviously…
3
votes
2 answers

Efficiently maintain slightly different (logging/non-logging) functions

I have a number of algorithms for community detection on graphs that I want to now visualise them. This visualisation requires me to 'hijack' these algorithms while they execute and log what they are doing. Specifically this will mean passing a…
zenna
  • 9,006
  • 12
  • 73
  • 101
3
votes
1 answer

How to make a fully independent module in a Gradle multi-project

I want to develop a piece of software in java with some GUIs on top (in particular, an android app). I would like the core functionality to be a self-contained module that is fully independent from any GUI or other software layer that could be built…
Anakhand
  • 2,838
  • 1
  • 22
  • 50
3
votes
1 answer

How to build single angular module and deploy it separately?

We have a big angular application containing 1000 modules. While deploying application we have to deploy the whole app from dist this approach is not good for any large application. Is there any way to build a specified module from application and…
3
votes
1 answer

How to run code that has modules, each in a different virtualenv?

Short Story: I have a very big python project It is comprised of ServiceA, ServiceB, ServiceC and so on. For modularity, each service has its own virtual environment. Each service needs some foo() from each other service. ServiceA does import…
Gulzar
  • 23,452
  • 27
  • 113
  • 201
3
votes
1 answer

Networkx- IndexError: list index out of range while using (greedy_modularity_communities

I am using Python 3.7.1 and networkx 2.2. I used networkx to generate my directed graph and I want to calculate the communities of the graph with networkx.algorithms.community.modularity_max.greedy_modularity_communities in following steps: import…
Ayn
  • 93
  • 1
  • 2
  • 9
3
votes
1 answer

How to evaluate community detection without ground truth

I have performed community detection on a graph and would like to evaluate how good my algorithm was in multiple ways. Right now I have the start graph, and lists of nodes representing extracted communities. I have no ground truth pertaining to…
M. Dawg
  • 31
  • 4