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

How to handle a modular spring project with flyway and single db

Situation I have a modular Spring Boot project. As a database schema manager, I would like to use Flyway. As already stated, the project is modular. This is, because there will be different configurations which use different modules. This means,…
Herr Derb
  • 4,977
  • 5
  • 34
  • 62
7
votes
4 answers

Best approaches for designing a well-organised ASP.NET application with modularity

I am trying to think about a web application development framework for our product development. I want to build an ASP.NET application which has many sub-modules in it. My requirements are like: The application will be a suite of different modules…
Shyju
  • 214,206
  • 104
  • 411
  • 497
7
votes
1 answer

Akka Streams Websocket Wiring

I'm trying to figure out the best way to implement a real websocket app using akka-http and akka-streams. What I'm mostly looking for is simplicity, which I'm just not getting now. Assume you have a fairly complex pipeline which needs to…
user510159
  • 1,379
  • 14
  • 26
7
votes
4 answers

Abstraction with Java in Android

I was studying some tutorials concerning the Java language. I was wondering if I should abstract every time that I code something, and on any type of standard and stack? I have seen that with every Spring Services for example, we could even abstract…
mfrachet
  • 8,772
  • 17
  • 55
  • 110
7
votes
3 answers

JDBC/OSGi and how to dynamically load drivers without explicitly stating dependencies in the bundle?

This is a biggie. I have a well-structured yet monolithic code base that has a primitive modular architecture (all modules implement interfaces yet share the same classpath). I realize the folly of this approach and the problems it represents when I…
Chris
  • 4,450
  • 3
  • 38
  • 49
7
votes
5 answers

JavaScript Module Pattern - Private variables vs. Static variables

So this is an example of the famous JavaScript Module Pattern: var Person = (function() { var _name; // so called 'private variable' function Person(name) { _name = name; } Person.prototype.kill = function() { …
7
votes
5 answers

I'm using SQL UDF's to encapsulate simple reporting/business logic. Should I avoid this?

I'm building up a new database in SQL Server 2008 for some reporting, and there are many common business rules pertaining to this data that go into different types of reports. Currently these rules are mostly combined in larger procedural programs,…
chucknelson
  • 2,328
  • 3
  • 24
  • 31
7
votes
8 answers

Extending Java Web Applications with plugins

I have this web application that has grown to an unmanageable mess. I want to split it into a common "framework" part (that still includes web stuff like pages and images) and several modules that add extra functionality and screens. I want this…
Thilo
  • 257,207
  • 101
  • 511
  • 656
7
votes
2 answers

How do I deal with Lua libraries that don't coroutine.yield()?

I want to download a large file and concurrently handle other things. However, luasocket.http never calls coroutine.yield(). Everything else freezes while the file downloads. Here's an illustrative example, in which I try to simultaneously download…
6
votes
1 answer

Best option for managing module classes

My game base consists of a series of modules, organized as classes, that are created, updated and interact when needed. A few examples could be: CWindowManager, CGraphicsManager, CPhysicsManager, and so on. I'm ashamed to have to say that I…
TDS
  • 61
  • 1
6
votes
2 answers

Reduce code duplication without subclass inheritance

I'm playing around with subclassing vs Interfaces and composition. I end up getting confused about a few things when it comes to the code duplication. As we all know there are alot of scenarios where subclassing and inheritance is just not the way…
6
votes
4 answers

How small should I make make modules in Haskell?

I'm writing a snake game in Haskell. These are some of the things I have: A Coord data type A Line data type A Rect data type A Polygon type class, which allows me to get a Rect as a series of lines ([Line]). An Impassable type class that allows me…
Ollie Saunders
  • 7,787
  • 3
  • 29
  • 37
6
votes
1 answer

Module Loading with ModuleManager in Prism

This question was also posted on Prism's site on Codeplex. I am a little lost on loading modules on demand, and I hope you guys can enlighten me. I am using v2 #7. Here's what I want to accomplish: 1) I have 2 regions - one for buttons that…
Gus Cavalcanti
  • 10,527
  • 23
  • 71
  • 104
6
votes
3 answers

Modularizing Angular

I am starting a new Angular project and trying to modularize all of my code – I'm tired of having massive app.js files and, because I'm developing a platform for a company, it's important my code is neat and modularized for easy testing,…
cortharlow
  • 135
  • 1
  • 9
6
votes
1 answer

How to define an array of a type in an external file in Raml?

If I have a file defining a Datatype SimpleDuple, and in another file defining another datatype called DiscreetFilter I want to have a property values to be an array of SimpleDuple how would I use include there? Consider the files for…
David Pelaez
  • 1,374
  • 1
  • 13
  • 16