Skip to main content

Questions tagged [modules]

Modules are independent software components that result from the decomposition of a larger software into more manageable pieces.

Filter by
Sorted by
Tagged with
2 votes
5 answers
1k views

This is basically a continuation of "Why don't languages auto import everything?" but with a slightly altered premisse: Say we have a language like C++ / python that uses namespaces to ...
glades's user avatar
  • 493
0 votes
0 answers
72 views

I'm working on a Python codebase which we are trying to improve the modularity of. Both the top level scripts and the modules that they depend on are all in one main repo. We have another repo which ...
Component 10's user avatar
0 votes
0 answers
58 views

I'm starting a project using .NET and Microsoft Orleans, running on Kubernetes. The main reason I chose Orleans is that I have a system that deals with accounts. There can be millions of accounts, but ...
Kilian's user avatar
  • 1
1 vote
1 answer
642 views

I like to export the names in my modules both as individual named exports and grouped together in a default export. Like this: // mod.js export function f() {} export const x = true export default {f,...
Blue Nebula's user avatar
5 votes
5 answers
2k views

What are some commonly used strategies when it comes to divide software into modules, other than there should not be any cyclic dependency between any modules? Some ways I think of Group everything ...
user877329's user avatar
2 votes
2 answers
170 views

If I give a real example, I want to create a desktop software that includes: electron js app that communicates with react js using IPC channels. I need to communicate with software that only has a ...
Ali Shefaee's user avatar
0 votes
1 answer
709 views

Let's say I am writing a python module module.py. Which provides functionalities for other parts of my code. Of course, the module has to import other modules. A simple example: import abc as _abc ...
HerpDerpington's user avatar
5 votes
1 answer
2k views

This is a clarification of a closed question. I've limited the scope as requested. First, a few definitions, following e.g. A modular module system. Consider any programming language with a selected ...
Corbin's user avatar
  • 146
0 votes
1 answer
321 views

As part of an migration from .NET Framework to .NET Core we're looking to decouple elements of our monolith into more manageable modules. Ideally following a clean architecture/DDD/microservice ...
Andy Cox's user avatar
  • 103
0 votes
2 answers
130 views

I'm looking for the most proper way to design a modular application with ServiceLoader. --MAIN IDEA-- module app.view | exports app.view.View interface that defines UI api module app.engine | exports ...
SmallDevice's user avatar
1 vote
0 answers
131 views

I built an asset management system (a web application) using C# ASP.NET in MVC structure. My project is built upon the ASP.NET Boilerplate template, which includes 5 layers by default. These layers ...
Emre Can Serteli's user avatar
0 votes
4 answers
366 views

As a design priciple I was taught: Programe para una interfaz, no para una implementación. Es decir, no se deben declarar las variables con el tipo de los herederos sino con el tipo de los supertipos....
EmmanuelMess's user avatar
2 votes
2 answers
390 views

I often come across this dilemma in my own code and wondered if there is a term for this and if there is a single solution to it. Let me illustrate it with a pseudocode example of making a table from ...
deSKase's user avatar
  • 139
1 vote
2 answers
2k views

I'm trying to design a monolithic application following DDD and clean code. Lets say I have Users, User Types, Products, Product Types and Purchases. I want to implement using different modules. At ...
Amdguez's user avatar
  • 41
7 votes
2 answers
256 views

The CPython implementation seems to have the same modules written both in C (e.g., datetime in .c) and also in .py for the same module (e.g., datetime in .py). My question is which version is used ...
multigoodverse's user avatar
2 votes
1 answer
1k views

This blog on "Clean Architecture" describes how to build a modular Android application along with using Clean Architecture. In that example project, the author places the business logic in a ...
Sourav Kannantha B's user avatar
1 vote
1 answer
798 views

For the project I'm working on I was thinking to create a Java Module for each layer of my system: servlet-presentation defines the implementation of the presentation layer. It is composed by Java ...
cidra's user avatar
  • 363
2 votes
2 answers
602 views

I'm developing an application (Java) in a modular architecture. I have two approaches in mind and I'm not sure which one will be "better code" in case of maintenance and conventions. I have ...
SmallDevice's user avatar
0 votes
1 answer
45 views

At our company, we have multiple products which share authentication settings. In particular, we use Spring LDAP, but since our use case and configuration is more complex, we would like to use ...
JohnEye's user avatar
  • 300
0 votes
2 answers
333 views

I work as a Website developer. We use a framework for building the backend of our sites. This framework recently released a new major version with lots of breaking changes. We have some sites using ...
Patrick Hollweck's user avatar
3 votes
1 answer
559 views

I have different versions of modules and they should all work together with the same shared library which could also have different versions like displayed in the image below: From a daily use ...
TomatenSalat's user avatar
2 votes
1 answer
3k views

Coming from the world of C#, where, despite sharing namespaces, it's quite common for every class to have its own file, I find that Rust codebases seem to have a complete different sort of philosophy (...
Brian Reading's user avatar
0 votes
1 answer
153 views

We use Dependency Injection extensively using the Ninject library in our .NET based products. Most of our code is neatly packaged in Ninject modules. Some of these modules contain background services ...
Wouter's user avatar
  • 111
1 vote
1 answer
66 views

My Software contains a lib package, a cli package and an arbitrary number of plugin packages. The plugin packages do the algorithmic work. The lib package basically just executes the plugins and ...
danielr1996's user avatar
0 votes
2 answers
156 views

In a large iOS application, I have a database module which is dedicated to handle application databases with read/write public APIs for other module. UI module has a feature to share the database, in ...
Sazzad Hissain Khan's user avatar
-3 votes
1 answer
945 views

I was wondering what's the principle behind it, and whether I should treat all functions from module that are not used anywhere else at the time as private, and mark them with underscore prefix so ...
tikej's user avatar
  • 101
4 votes
4 answers
2k views

In Software engineering , I usually see that the word module when written it usually followed by a bracket (components, packages, classes … etc.) meaning that a module can be a class or a package or a ...
Ahmed Mohamed's user avatar
1 vote
1 answer
246 views

N.B. Several months after initially asking this question (and not coming up with any satisfactory answers) I am now learning to use HTML Custom Elements / WebComponents. It seems the same question ...
Rounin's user avatar
  • 295
1 vote
1 answer
167 views

It appeared, that I have in my pet project two abstractions: asset loaders and drawing tasks. For each abstraction I have some classes representing them (currently a single class for drawing task ...
Yaroslav Kishchenko's user avatar
2 votes
2 answers
659 views

At my company, we are developing pretty simple React Native and sometimes mobile-only React apps. Most of them have some similar logic, such as 'sign-in by phone' flow, some payments stuff, etc., and ...
kuzkokov's user avatar
25 votes
3 answers
9k views

In some C projects, function names start with a common prefix indicative of the module name, for example: mymodule_do_this_stuff(); mymodule_do_that_stuff(); Is there a justification for doing so ...
user6007354's user avatar
1 vote
0 answers
43 views

How can I use Java modules in an Android app repository? In particular, what directory structure should I use? I have a project in mind for which I would like to have a GUI-independent core Java 9 ...
Anakhand's user avatar
  • 149
-3 votes
1 answer
1k views

I try to understand what cohesion means when designing modules. Myers states in his book "Composite structured design": An informational-strength module has the following definition: It ...
flexibleHammer's user avatar
1 vote
0 answers
76 views

When developing a somewhat larger application, with 3-4 screens or so, what is the most common way to organise the code? I've read that organize-by-feature trumps organize-by-type, so I was ...
xtofl's user avatar
  • 344
0 votes
1 answer
578 views

This is a matter of naming, structuring and conventions. I am developing a simple python package. in a directory "PKG" I have 3 files: __init__.py: # import the main module import PKG.main # in ...
maciek's user avatar
  • 109
2 votes
1 answer
125 views

While recently creating a module for shared functionality between our projects I stumbled upon this question. Should the module be occupied with transpilation of code to older browsers that our ...
Leon's user avatar
  • 207
2 votes
2 answers
428 views

I'm writing a Python library in which various objects are represented as Python classes. However, the user is not supposed to create instances of those classes directly. Instead, there are a set of ...
N. Virgo's user avatar
  • 894
2 votes
1 answer
3k views

Until now I have been using simple strategy for packages naming in my maven-modular projects. Each package name contains name of the module in which it is placed. For example, simple project would ...
Norbert Dopjera's user avatar
2 votes
1 answer
96 views

I am writing a client to talk to a server API in JavaScript. I have an OOP background but am trying to embrace modern EcmaScript. So I started with this: customerApi.js: const baseUrl = "http://...
user210757's user avatar
0 votes
1 answer
315 views

I'm reading the book "The Go Programming Language" and this sentence in the preface section "The Origins of Go" has me puzzled: One major stream of influence comes from languages by Niklaus Wirth, ...
Wildcard's user avatar
  • 544
0 votes
1 answer
4k views

I have an unresolvable dependency issue in a Maven project; different pieces of code depend on different versions of dependency A (i.e. most code needs A:0.15; some needs A:0.18). Fortunately, the ...
kingledion's user avatar
2 votes
0 answers
2k views

Consider the following architecture: Application A Application B Commons-Util A and B share a lot of functionality. That's why we plan to extract the shared code into a commons library. I am aware ...
Adrian Krebs's user avatar
1 vote
1 answer
445 views

It seems like ES6 imports for Node have been a bugbear for a while. There is the --experimental-modules flag, or options like using Babel - but AFAIK ES6 modules still aren't supported in vanilla Node....
dwjohnston's user avatar
  • 2,769
3 votes
1 answer
124 views

Practicing some of the ES7 features, I started developing a class to perform some actions on the DOM and use the new features. I used Babel to make it work on the browser, and the code looks something ...
Alvaro Montoro's user avatar
2 votes
1 answer
2k views

Given three project modules X, Y and Z on a Maven based project, and Y depends of Z and X of Y and X should not know that Y depends of Z, being this: X -> Y Y -> Z X -X> Z What is the best way to ...
SEISCOOL's user avatar
0 votes
1 answer
217 views

I'm doing the analysis for a software which I've had in mind for a long time. Its purpose is to turn sound into an image, apply graphical transformations on it, and turn it back into sound to hear the ...
qreon's user avatar
  • 339
1 vote
1 answer
244 views

I'm trying to figure out how to create a Node.js/Express.js application that is a framework for hosting and running third-party code in my application, and what are the appropriate JavaScript/Node/...
jia103's user avatar
  • 141
3 votes
3 answers
2k views

We are discussing proposal to split a big C++ program into multiple separate executables that would communicated using shared memory. The shared data structures are large, so we do not want to use ...
h22's user avatar
  • 966
4 votes
2 answers
3k views

I was going through a fantastic talk by Alex and nearly all the things he spoke made sense to me except for the given thing. Link In a nutshell how does module manage versions. If I have a module v1 ...
log N's user avatar
  • 487
-1 votes
2 answers
87 views

Background: I'm building a desktop app where user ability to develop mods is critical. At its bare bones it is a content generator where the content has many layers, and users can develop their own ...
James's user avatar
  • 9