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

Lua and C++: separation of duties

Please help to classify ways of organizing C++/Lua game code and to separate their duties. What are the most convenient ways, which one do you use? For example, Lua can be used for initializing C++ objects only or at every game loop iteration. It…
topright gamedev
  • 2,617
  • 7
  • 35
  • 53
12
votes
3 answers

How to find unneccesary dependencies in a maven multi-project?

If you are developing a large evolving multi module maven project it seems inevitable that there are some dependencies given in the poms that are unneccesary, since they are transitively included by other dependencies. For example this happens if…
Dr. Hans-Peter Störr
  • 25,298
  • 30
  • 102
  • 139
12
votes
1 answer

Modular programming and node

UPDATE 1: I made a lot of progress on this one. I pretty much gave up (at least for now, but maybe long term) on the idea of allowing user-uploaded modules. However, I am developing a structure so that several modules can be defined and loaded. A…
Merc
  • 16,277
  • 18
  • 79
  • 122
11
votes
2 answers

How to add a feature of modularity to a Java web application

I have developed a Java EE based web application as an Open Source Project. Now some contributors like to add additional functionality through modules plugged into the web application. Can you please explain how to achieve that or direct me to a…
Buddhika Ariyaratne
  • 2,339
  • 6
  • 51
  • 88
11
votes
2 answers

Developing a Redux store as a seperate NPM module for a React App

Is it viable to develop the Redux Store for a React App as a separate npm package and then import the Store in the React App For example: I have a hypothetical React Project named reactapp. I develop a package named reactapp-reduxstore containing…
besrabasant
  • 2,422
  • 6
  • 27
  • 41
11
votes
3 answers

NodeJS Modulization

So, I was told that passing around the request and or response variable in nodeJS is "bad practice". But this means that most of your code has to be in the server.js file, making it cluttered and kind of ugly. How can you modularize your nodejs…
Sterling Archer
  • 22,070
  • 18
  • 81
  • 118
10
votes
2 answers

R: igraph, community detection, edge.betweenness method, count/list members of each community?

I've a relatively large graph with Vertices: 524 Edges: 1125, of real world transactions. The edges are directed and have a weight (inclusion is optional). I'm trying investigate the various communities within the graph and essentially need a method…
Sean Mc
  • 458
  • 6
  • 14
10
votes
3 answers

Techniques for object-oriented or modular file and data I/O?

It seems like every single time I go to write any code that deals with fetch, push, read, or write operations, the entire swath of code is ad hoc, ugly, and completely unusable outside the context of that exact application. Worse yet, it feels like…
drmuelr
  • 955
  • 1
  • 13
  • 30
10
votes
1 answer

How can Modularity help in Network Analysis

I have a large network of routers all interconnected in a community network. I am trying to see different ways in which i could analyse this network and gain helpful insights and ways in which it could be improved just by analyzing the graph(using…
user2691659
10
votes
2 answers

How Android handle multiple R.java?

I'm making couple of Android library apps for a project. To simplify the question, let's say I have two libraries(utilLib, screenLib) in this project(now will be referred to as app). There's String resource with the same name inside each project but…
RobGThai
  • 5,937
  • 8
  • 41
  • 59
9
votes
7 answers

What is the golden rule for when to split code up into functions?

It's good to split code up into functions and classes for modularity / decoupling, but if you do it too much, you get really fragmented code which is also not good. What is the golden rule for when to split code up into functions?
Chetan
  • 46,743
  • 31
  • 106
  • 145
9
votes
2 answers

The best way to separate admin functionality from a public site?

I'm working on a site that's grown both in terms of user-base and functionality to the point where it's becoming evident that some of the admin tasks should be separate from the public website. I was wondering what the best way to do this would…
AndrewO
  • 1,590
  • 1
  • 17
  • 24
9
votes
3 answers

Plotting communities with python igraph

I have a graph g in python-igraph. I can get a VertexCluster community structure with the following: community = g.community_multilevel() community.membership gives me a list of the group membership of all the vertices in the graph. My question is…
jayelm
  • 7,236
  • 5
  • 43
  • 61
8
votes
2 answers

What's the best practices in code reuse between different Ruby projects?

guys! I'm a software developer with Java background and I'm starting some projects using a Ruby web framework (Padrino/Sinatra). In my java projects, I usually had some "common" projects whose classes where used in several projects. For instance, I…
Carlos Melo
  • 3,052
  • 3
  • 37
  • 45
8
votes
2 answers

Why using functions defined in the same module faster than the same function defined in another?

Consider this block of code: isPrime primes' n = foldr (\p r -> p * p > n || (n `rem` p /= 0 && r)) True primes' primes = 2 : filter (isPrime primes) [3..] main = putStrLn $ show $ sum $ takeWhile (< 1000000) primes which calculates the sum of…
claude
  • 237
  • 1
  • 8
1 2
3
48 49