143 questions
43
votes
12
answers
52k
views
Angular ERROR TypeError: Cannot read properties of undefined (reading 'onDestroy')
I have problem. Angular is sometimes showing error
ERROR TypeError: Cannot read properties of undefined (reading 'onDestroy')
I am getting this error when I am running ng serve, but if I use angular ...
26
votes
5
answers
9k
views
How to modularize a JSF/Facelets/Spring application with OSGi?
I'm working with very large JSF/Facelets applications which use Spring for DI/bean management.
My applications have modular structure and I'm currently looking for approaches to standardize the ...
17
votes
3
answers
778
views
Referenced Method Count Increased After App Modularization
AS: 3.5.3; Android Gradle Plugin: 3.5.0; Gradle: 5.6.2;
We observed a drastic increase in the number of methods referenced in our app after splitting the 'app' module into several small modules. But ...
16
votes
2
answers
3k
views
How to modularize AngularJS applications / plugins
I have a couple of (software-)architecture questions regarding a migration from Grails (REST-API, parts of AngularJS, MongoDB, Tomcat, Spock, several plugins) to Node.js + Angular.js.
I probably have ...
15
votes
2
answers
6k
views
How split packages are avoided in Java 9
I am new to Java 9 and was going though the modular video lectures by Java on YouTube.
They mentioned 3 benefits of modularization-
No missing dependencies
No cyclic dependencies
No split packages.
...
11
votes
3
answers
3k
views
The best approach to modular programming in Delphi [closed]
this is a continuation of the discussion I started here. I would like to find the best way to modularize Delphi source code as I'm not experienced on this field. I will be gratefull for all your ...
11
votes
7
answers
1k
views
Modular JavaScript - are there any approaches apart CommonJS and AMD to consider?
I'm currently preparing an evaluation JavaScript modularization approaches for my corp. We are in process of defining "JavaScript Best Practices" for our projects, modularization is one of the central ...
11
votes
5
answers
2k
views
How do can I implement Modularization in a Rails App?
Breaking a large rails app into smaller apps?
Modularizing Rails applications
Best practice for structuring a 'large' Rails app
I have a quick question on modularization in a large Ruby on ...
10
votes
3
answers
7k
views
angular.js - best practice for defining a utility library
I'm giving my first steps with angular, and I need to define a utility helper library, with a couple of function methods, something like
dataHelper.parse, dataHelper.sanitize, etc
What would be the ...
9
votes
1
answer
8k
views
How to make Modularization in Flutter to separate each application feature
On Android native to separate each application feature, structured the project, implementing architecture component and to make it easier to work in a team you can use modularization, so each person ...
9
votes
5
answers
6k
views
How important is modularization of software projects
Modularization is obviously important in software projects, but I want to know people's opinions on how important and for what reasons it is important. I've obviously got my own ideas since I'm asking ...
8
votes
2
answers
6k
views
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 ...
8
votes
7
answers
6k
views
C++ modularization framework (like OSGi) ?
I found one SOF http://www.codeproject.com/KB/library/SOF_.aspx ,
Are there anyother stable frameworks for modularization in C++ ?
7
votes
3
answers
1k
views
OSGi bundle's package structure
I've been thinking some about "good practice" regarding package structure within osgi bundles. Currently, on average, we have like 8-12 classes per bundle. One of my initiative/proposal has been to ...
6
votes
8
answers
2k
views
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."
...
6
votes
3
answers
7k
views
Dynamically inject data in React Router Routes
I've been working on trying to modularize my React.js app (that will be delivered as a Desktop app with Electron) in a way that if I make a new module in the future, I can just add a new folder and ...
6
votes
4
answers
617
views
Learning to write organized and modular programs
I'm a computer science student, and I'm just starting to write relatively larger programs for my coursework (between 750 - 1500 lines). Up until now, it's been possible to get by with any reasonable ...
5
votes
1
answer
2k
views
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 ...
5
votes
1
answer
3k
views
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, ...
5
votes
0
answers
460
views
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 ...
4
votes
0
answers
9k
views
How to solve package is declared in module, but module does not read it?
I am migrating my development environment to another pc. I use NetBeans 10, open JDK11, JavaFX. When I import the main project into NetBeans I get the following error:
on:
import java.util.logging....
4
votes
1
answer
1k
views
Should I include all my custom exceptions in one file?
I have a module with several files, some of which have a few custom exceptions declared. These exceptions are primarily raised in the file they are declared, but sometimes they are also raised in ...
3
votes
2
answers
278
views
How does hiding information help in modularization?
How does information hiding help to decouple the modules that comprise a system?
3
votes
2
answers
12k
views
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 ...
3
votes
4
answers
388
views
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?
3
votes
2
answers
535
views
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 ...
3
votes
1
answer
3k
views
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 ...
3
votes
0
answers
70
views
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 ...
3
votes
1
answer
527
views
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 ...
2
votes
3
answers
152
views
refactoring modular structures in D
Here's how I usually develop an application:
I start with having all the code in a single source file.
When it grows enough to be modularised, I break the code into several modules.
When the modules ...
2
votes
2
answers
352
views
How to link main with made libraries?
I'm trying to link libraries I made to main source code, but it throws this error. I've been searching for last two hours how to fix this but nothing worked for me.
Compiling:
cd "c:\Users\miros\...
2
votes
4
answers
813
views
Modularising a C# Compact Framework 2.0 Application
We're currently developing a new piece of hand-held software. I cant discuss the nature of the application, so I'll use an example instead.
We're designing hand-held software for managing a school. ...
2
votes
1
answer
284
views
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 ...
2
votes
1
answer
5k
views
How to create package from existing project with Swift Package Manager?
Is it possible to create package from existing project ( UIKit application ) in Xcode13 ?
I have implemented application but it too big and take too much time on building phase. Because of that, I ...
2
votes
1
answer
1k
views
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 ...
2
votes
1
answer
95
views
Can OSGi easily be used to manage package dependencies?
I understand that OSGi can be used to manage service dependencies, that is sharing POJO instances between bundles. But say I have a library B.jar with compile-time dependencies on classes in my other ...
2
votes
1
answer
392
views
Android resources modularization
I have my Android project divided into 5 modules.
The 'app' module handles all the views and processing with the UI having all the resource drawables.
Now, I am implementing an algorithm to compare ...
2
votes
1
answer
141
views
Retrievable logging in modular programing in C++ [closed]
My task basically was to build a specific module for an existing system. The module works properly, but now I should place log entries inside the code. Since this is only a module of the final system ...
2
votes
1
answer
2k
views
Java 16 Modularisation IllegalAccessException Java.NIO Spring Boot
I'm new to Java and have been coding in JDK 11, but now using JDK 16. When I try to open a database connection method from the Spring Boot main class, by calling the database connection class, even ...
2
votes
1
answer
1k
views
Modular Java Web Application
We have a rich web application based in Java & Spring framework which have many functionalities and classes. recently something sparked in my mind that why not we provide modularity to make it ...
2
votes
1
answer
472
views
How to programmatic render JSP files?
Currently, I'm using Velocity instead of JSP, for its flexibility. For some reasons, I need to distribute my web modules in jar archive, rather than war archive`.
I have read the servlet ...
2
votes
0
answers
175
views
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 ...
2
votes
0
answers
377
views
Snakemake: Solving dependencies between modules
I'm using Snakemake and tried to order my overall pipeline structure by utilizing modules as the modularization approach suggests. However, one of my modules has a rule which depends on the ouput of ...
2
votes
0
answers
802
views
Publishing the XCFramework
I want to modularise my codebase to distribute it like third party libraries. I followed the article for the same. So far I have been able to split the code into three modules (Networking, Core & ...
2
votes
0
answers
477
views
iOS Framework Module Not Loading in App on Physical Target
My app has been growing quite a bit over the years, and I decided to give it a try to further modularize it by breaking it up into several frameworks and static libraries. After 4 days of work (and ...
2
votes
0
answers
696
views
Android alternative for Swift Package Manager?
I am working on creating a modularised app. I had been using git submodules, but AFAIK, Swift Package Manager (SPM) in iOS works as a wrapper around git submodule. Can you please suggest Android ...
2
votes
0
answers
659
views
React native modularization
Currently, I need to modularize an app into smaller modules. As far as I've known, modularization is the concept of separating an app into smaller components, which will be developed by a specific ...
2
votes
1
answer
1k
views
How to share ngrx state between lazy loaded modules, can we have a shared module to do so?
Want to implement shared store module for sharing state between 2 feature modules
Can some one please share stackblitz or git repo link for shared state module
2
votes
0
answers
226
views
Change in private method rebuilds Gradle dependant module
so I have an Android project with a module App that depends on a module A that depends on a module B (App -> A -> B), in such a way that the gradle file of the module A looks like this:
...
...
2
votes
0
answers
652
views
MTA application with reuse Libraries
We have SAP UI5 MTA application deployed in SAP CP consist of 3 apps(HTML5 modules).
All these apps right now standing independently without communicating each other.
Among these two apps controller ...