Questions tagged [modular-design]

Modular programming (also called "top-down design" and "stepwise refinement") is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.

Modular programming (also called "top-down design" and "stepwise refinement") is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.

Conceptually, modules represent a separation of concerns, and improve maintainability by enforcing logical boundaries between components.

Modules are typically incorporated into the program through interfaces.

A module interface expresses the elements that are provided and required by the module. The elements defined in the interface are detectable by other modules.

The implementation contains the working code that corresponds to the elements declared in the interface.

Source: Wikipedia

116 questions
0
votes
1 answer

Wrong output when dealing with multiple python files for one project

Sorry if I asked a silly question or made an obvious mistake as OOPS is not my strong point! I have a project for which I am using Python. I have written all the code in a single function and it works as expected, giving proper output dataframe. But…
spectre
  • 717
  • 7
  • 21
0
votes
0 answers

How do I create multiple interactions (selectMenu Interaction , command Interaction) from a single slash command discordJS (Typescript)

What we intend to do: Replies with dropdown Menu if data from database has more than 1 item And responds accordingly with that value chosen from drop down. The Problem: Since we have modularized the code (According to discordjs guide) we are not…
0
votes
1 answer

Converting this program from 1 function to a modular, multi-function program?

I am very new to C++ and have a program which I included below. The program I am working on reads text from an input file and counts the number of words and number of occurrences of each letter in the text and then prints the results. My program is…
pologawd
  • 1
  • 1
0
votes
1 answer

Modular development in iOS

How do I add a module and manage their dependency in Xcode using swift? Is there a way like I could done it by a few clicks in Android Studio? What exactly is the keyword I should search for? Or should I even need to do this in iOS development?
ming chen
  • 550
  • 4
  • 13
0
votes
0 answers

Java/OpenJDK, how to dynamically load library

I want to make an application that can dynamically load java modules. The problem is that MainApp must have all libraries used in modules. For example i tried load module with external library and i cant run application without loading same library…
Darko
  • 11
  • 2
0
votes
2 answers

How can I create a separate function just to handle exceptions generated by the requests library?

I am a newbie in python software development. I have created a script which includes many functions returning output of a request and handling the exceptions generated by them. One of the func. is as below: def ApiResponse(emailHash): r=None …
0
votes
0 answers

How do I implement plugins in Laravel / PHP

I'm trying to make a plugin system that could integrate with existing functions / components in an eCommerce Laravel project. By integrating with existing functions / components, I mean to have the ability to add on more payment methods by…
Eric Wang
  • 419
  • 2
  • 6
  • 23
0
votes
1 answer

ASP.NET MVC & MEF - Pluggable architecture

I started creating a PoC following SO this post but I wasn't able to get a very basic sample to work. What I did: I created an ASP.NET MVC project using empty template and MVC references. I added Bootstrapper, CustomControllerFactory and…
Diego
  • 16,436
  • 26
  • 84
  • 136
0
votes
0 answers

Understanding of Multi-modular project android

I have three modules in my project say ModuleA, ModuleB, ModuleC. My problem is when i run the project every time all the three module getting recompiled irrespective of the changes made in the module, But what i found in some of the blog is that…
Stack
  • 1,164
  • 1
  • 13
  • 26
0
votes
1 answer

How to make an Angular app a module to be integrated into other Angular projects using Azure DevOps?

I have programmed an Angular app, which shall count as a template from now on. It sits in a repo and needs to sync to my other new projects and act as a module -> meaning that changes in the repo shall get updated on the server, where the new…
Munchkin
  • 857
  • 5
  • 24
  • 51
0
votes
1 answer

Module design pattern encapsulation

Given this code in module design pattern: var HTMLChanger = (function() { var contents = 'contents' var changeHTML = function() { var element = document.getElementById('attribute-to-change'); …
solnurkarim
  • 78
  • 1
  • 5
0
votes
0 answers

Confused about applying Design Patterns

I am designing a system for airport as a part of office project and I am supposed to design a class for handling passengers. I am using WPF MVVM so I have my PassengerInfoViewModel which basically represents a Passenger traveling to Airport. I am…
undefined
  • 142
  • 10
0
votes
1 answer

Error with multiple definitions of functions

im learning C in college and have an assignment to for my software development class, Its a application to ask the user which shape they want to choose, ask them for the parameters of the shape and then it outputs the area and volume etc. After…
S_G
  • 17
  • 7
0
votes
1 answer

Integrate separate java applications as modules of a single application

I have some separate java applications, developed for performing different tasks. Now I want to integrate these applications as a single application. I want to develop a core for the integrated application, such that anyone can add some modules to…
sajad
  • 2,094
  • 11
  • 32
  • 52
0
votes
0 answers

How can I just one header file based on some condition?

I have two header files:a.h and b.h. I want to use only one of them, based on some condition. How can I do this? Here some code: main.c: #include #include"a.h" #include"b.h" main() { test(); system("pause"); return…
Neri-kun
  • 173
  • 3
  • 14