Questions tagged [modularization]

The aim of the software modularization process is to partition a software system into subsystems to provide an abstract view of the architecture of the software system, where a subsystem is made up of a set of software artifacts which collaborate with each other to implement a high-level attribute or provide a high-level service for the rest of the software system.

Knowing the software architecture, software developers can perform fit-gap analysis and estimate the costs and risks of the required changes, and also will be able to determine which components can be reused. However, for large and complex software systems, the software modularization cannot be done manually, owing to the large number of interactions between different artifacts, and the large size of the source code. Hence, a fully automated or semi-automated tool is needed to perform software modularization.

134 questions
6
votes
8 answers

When is abstraction and modularization a bad practice in programming?

just saw this comment in a "what JS lib do you use" poll "@Xanti - yes, yes, modularization and abstraction in programming is a terrible practice. Functions that call other functions? Wasteful." And that left me curious because I am using Kohana…
yretuta
  • 7,963
  • 17
  • 80
  • 151
5
votes
2 answers

Reach the version code and name from a library module

I'm currently working on modularizing my application, so I'm putting each feature in a library module. In one of my features, I access the version code and name. However, although I defined them in the build.gradle file specific for that…
Walid Baroudi
  • 85
  • 1
  • 5
5
votes
1 answer

Multi module project: how to setup Dagger to provide interface but hide implementation-specific dependencies?

In my application, I have two modules: app and repository. repository depends on Room, and has a GoalRepository interface: interface GoalRepository and a GoalRepositoryImpl class that is internal, as I don't want to expose it or the Room…
gpunto
  • 2,573
  • 1
  • 14
  • 17
5
votes
1 answer

How to use FS when MODULARIZE and EXPORT_NAME are used in emscripten

I have an application that contains libraries generated with emscripten. I am compiling them using the flags: -s MODULARIZE=1 -s EXPORT_NAME=\"'SomeModuleName'\" However, the library FS is no longer available. When I was compiling without the…
Juan
  • 806
  • 1
  • 8
  • 15
3
votes
1 answer

How can we share individual rules between .drl files in JBoss Rules?

We are using JBoss Rules (a.k.a. Drools) and have several .drl files that each contain several rules. Is there a way to avoid duplication between files, so that we can define common rules that are available to more than one .drl file? Unfortunately,…
Peter Hilton
  • 17,211
  • 6
  • 50
  • 75
3
votes
0 answers

Why the namesace is different in the modular programming while there is an __init__.py file in python?

I have a few questions about namespaces and init.py in modular programming in python. I will divide my questions into two sections: without init and with init. Section 1) Without init.py Suppose that I have a main.py file and a helpers directory…
8Simon8
  • 141
  • 9
3
votes
1 answer

End to end test for android app with dynamic feature module . How to?

Android project structure : -app module -featureA dynamic module -> depending on app module -featureB dynamic module -> depending on app module Use Case : I want to write end to end intrumentation test for my application Issue : Since , dynamic…
3
votes
2 answers

Difference between javascript modularisation and dependency Injection

What 's the difference with the modularisation of a javascript code (with browserify by example) and the dependency injection? Are they synonymes? Are the two going together? Or Am I missing some point?
sab
  • 4,352
  • 7
  • 36
  • 60
3
votes
2 answers

C Mulitple definition/first defined here error

I'm trying to write a bookstore program, and I'm getting an error saying "multiple definition" in my source code file at my function implementation. Here is my Book.c file: #include "Book.h" void scanBook(book_t* bk) //error here { …
CassiePray
  • 43
  • 1
  • 1
  • 4
3
votes
2 answers

How does hiding information help in modularization?

How does information hiding help to decouple the modules that comprise a system?
jai
  • 21,519
  • 31
  • 89
  • 120
3
votes
4 answers

Can I store a logical comparison in a string?

I am trying to modularise a lengthy if..else function. $condition = "$a < $b"; if($condition) { $c++; } Is there any way of translating the literal string into a logical expression?
2
votes
1 answer

Using Module in Snakemake. Define a rule after a use rule * from workflow throw an error

I'm using the version 7.23.1 of Snakemake. I'm using the modularization in snakemake and I'm getting a strange behavior. I would like to ask for your help in order to understand a bit more in-depth how snakemake works. I have the following…
2
votes
0 answers

Modularized App and Global State (Android Compose)

I am following the Now In Android sample for modularization and best practices with Jetpack Compose and I am a bit stuck with sharing a simple LocalDate state across several modules/features. I want to be able to change a selected date in several…
2
votes
0 answers

Achieve modularization in android, I want SDK to work with optional dependencies. Whether dependency is provided or not code should compile in both

I am creating SDK and want to modularize it. And prevent internal APIs from being exposed on your public interface. Want optional dependency based on features required. If features is not required we can remove dependency and code and imports should…
Jaykishan Sewak
  • 822
  • 6
  • 13
2
votes
1 answer

Translation of LocalDateTime with DateTimeFormatter in modularized program (JDK17)

I try to translate a LocalDateTime to the current used language like shown in this answer: https://stackoverflow.com/a/51843932 Running the program in Eclipse works as intended, but when it gets deployed with maven and jlink it falls back to…
1
2
3
8 9