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

Structuring and reusing React Styled-components and native components

I’m a backend engineer who is learning frontend – very much a noob at this point. I’m currently learning React and came across styled-components¬, which seems like a great way of handling styling whilst using components. I’m currently having issues…
2
votes
1 answer

Rails best practices to build activable (or not) features?

OK let's assume I have an awesome looking rails app with somes Posts, which can be commented and voted on. It's online and people love it. Now imagine a client comes up and tells me "Hey, this app looks good ! Could I have just the same one, but…
Jeremy F.
  • 1,346
  • 12
  • 30
2
votes
2 answers

Modular structure (not depending on each other) with no redundancy in zend framework

I am working on small level of content management system (CMS) using Zend framework and Doctrine. To explain my question, I have created a simple structure, where I build two modules (Admin, Frontsite) as you can see in the following…
Developer
  • 25,073
  • 20
  • 81
  • 128
2
votes
0 answers

In GitHub Actions is it possible to pass steps to a sub-action?

Is there any way that a step in a workflow job can specify sub-steps to pass to a custom action? steps: - uses: ... with: steps: - ... - ... - ... For example, a uses: actions/cache@v2 will attempt to download a…
benjimin
  • 4,043
  • 29
  • 48
2
votes
1 answer

Android app feature update on-demand from my own server

I know that I can let users download apks from my server but... What I need is a technique to implement a modular app with features that I can add and remove such as the Play Feature Delivery from Android App Bundles. At the same time I can't use…
Jakkins
  • 115
  • 11
2
votes
1 answer

Node links across modules with graph and dataframe

I have a graph object (a weighted network), where nodes belong to different modularity classes defined in a dataframe. I would like to calculate a node's number of links to other nodes in all different modules (its own module and every other…
MoonS
  • 117
  • 7
2
votes
4 answers

OSGi and the Modularity of Persistence: The Effect of Relationships

Most questions revolving around the title of this post ask about making Hibernate, or some other access layer, run in an OSGi container. Or they ask about making the data source run in an OSGi container. My questions concern the effect of OSGi…
Eric T.
  • 65
  • 1
  • 1
  • 4
2
votes
0 answers

Why using the attribute of #transparent in struct definitions could decrease code modularity in Racket?

I am studying a material about Racket written by the great Professor Dan Grossman. He is part of the University of Washington CS Department. At some point in his lecture notes about Racket, he describes the use of struct and the #:transparent…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
2
votes
1 answer

Specific question concerning "The package org.w3c.dom is accessible from more than one module: , java.xml"

I'm in the process of migrating my companies projects from Java 1.8 to OpenJDK 14. Like multiple other people (fe. in this, this or this thread) I've run into some troubles with Java 9 Modularity, specifically with the package org.w3c.dom. I have…
yur
  • 380
  • 2
  • 15
2
votes
1 answer

Applying Graph Clustering Algorithms on the (famous) Iris data set

My question deals with the application of graph clustering algorithms. Most times, I see that graphs are made by using nodes and edges within the data. For example, suppose we have social media data: each individual in the data could be represented…
stats_noob
  • 5,401
  • 4
  • 27
  • 83
2
votes
1 answer

Multiple APKs packaging the same library can cause runtime errors with only one dynamic module on AGP 4.0.1?

I have only one dynamic feature module in my project called search, But when I try to build project, I get that Error: [:search, :search] all package the same library [androidx.recyclerview:recyclerview]. Multiple APKs packaging the…
MR3YY
  • 638
  • 1
  • 8
  • 18
2
votes
1 answer

Javascript Proxy: prevent any further properties to get called when a property does not exist on a multi level object

Context while working on a modular architecture, I try to make as much "weak" dependencies as possible. For that purpose I use a "bridgeService" that handle all inter-module interactions. Problem I would use the bridgeService as follow: // in…
TOPKAT
  • 6,667
  • 2
  • 44
  • 72
2
votes
0 answers

Modules' runtime access

I was reading JLS-14 and in a chapter about modules I saw a statement like this Distinct from access at compile time and access at run time, the Java SE Platform provides reflective access via the Core Reflection API (§1.4). A normal module grants…
JovoH
  • 138
  • 6
2
votes
1 answer

Data contexts - Linq to SQL

No one has taught me how to use these, and I can't find much on how I should be using them properly. At the moment I say have a data context for my users, user details, user profiles etc. I then have a separate one for my help centre, holding…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
2
votes
1 answer

Asp.Net Core Modular Application

I am building asp.net core 2 modular application, I was having one module but now I am about to create another module and I get to the point that I need to develop a communication between the two modules, I need to use a model class from module A in…
malballah
  • 681
  • 1
  • 9
  • 17