Questions tagged [modular]
347 questions
8
votes
3 answers
How to write a flexible modular program with good interaction possibilities between modules?
I went through answers on similar topics here on SO but could't find a satisfying answer. Since i know this is a rather large topic, i will try to be more specific.
I want to write a program which processes files. The processing is nontrivial, so…

PeterK
- 6,287
- 5
- 50
- 86
7
votes
3 answers
What is the diffrence between a function and a module?
I am very new to c++ and confused between what is the difference between modular programming and function oriented programming.I have never done modular programming so I just know modules by definition that it contains functions.So what is the…
user379888
7
votes
5 answers
modular multiplication of large numbers in c++
I have three integers A, B (less than 10^12) and C (less than 10^15). I want to calculate (A * B) % C. I know that
(A * B) % C = ((A % C) * (B % C)) % C
but say if A = B = 10^11 then above expression will cause an integer overflow. Is there any…

Pravin Gadakh
- 603
- 1
- 9
- 19
6
votes
1 answer
What is this programming method called? And is it bad?
Lately in my Unity projects, I have discovered that to create a more modular application it helps to have a static List in a class that contains references to all or some of the objects created so that they may be accessed easily from other parts of…

Luminary Promotions
- 105
- 1
- 1
- 5
5
votes
1 answer
Angular 2 override components
I am from Laravel world and a bit new to Angular 2 world, and i am having a hard time to figure out:
Is it possible to override a component or it's template in Angular 2 like we use to override the views of the vendor/custom package in Laravel?
This…

PaladiN
- 4,625
- 8
- 41
- 66
5
votes
1 answer
Euclidean algorithm to solve RR' - NN' = 1. Modular exponentiation with Montgomery algorithm to implement Fermat test in python or Petite Chez scheme
This is as a personal challenge in my introductory programming class taught using Scheme, but I would be equally happy with Python examples.
I've already implemented the binary method of modular exponentiation in scheme as follows:
(define (pow base…

Seth
- 51
- 3
4
votes
3 answers
Modular Arithmetic in Haskell
How would I go about making a function so that x has a range of values from x=0 to x=19 and if the x value exceeds 19 or is below zero how can I get it to wrap around
From:
x=20, x=21, x=22 and x=(-1), x=(-2), x=(-3)
To:
x=0, x=1, x=2 and x=19,…

maclunian
- 7,893
- 10
- 37
- 45
4
votes
2 answers
Mixed Modular and Non-Modular Development in Eclipse using Java 11
It's been a while since I do Java programming and I am surprised to come back to it with the entire landscape being foreign to me post project jig-saw.
I have trouble using Eclipse (2018-09, 4.9.0) standard Java project with mixed modular and…

adizen
- 51
- 1
- 4
4
votes
3 answers
How do you build an application in c++ modularly
This is a question more about how to build a c++ application than it is about c++, per se
I'm building an application that was envisioned as a Graphical application, but the specifics of the implementation require a great deal of abstract…

Ben West
- 660
- 5
- 17
4
votes
3 answers
Techniques for Modular CSS
I want to start using modular CSS, but I'm having trouble figuring out the best way to implement it. I was thinking I could just use a bridging technique, where I have one in my HTML and then @import statements for each module. While I like the…

Jo Sprague
- 16,523
- 10
- 42
- 62
4
votes
2 answers
Java Swing modular color scheme
I am setting up a large scale GUI (larger than anything I have done before) using Java's Swing toolkit and I would like to set up my own custom color scheme to draw colors from so that all color definitions are in one place. To do this, I have…

FallDownT
- 55
- 1
- 8
4
votes
3 answers
Is this a modular js design pattern? And how do I reuse a value across different modules in this model?
I've come across a javascript/jQuery design structure where each action was defined in an object literal, like this :
if(typeof window.MYWEB === "undefined"){
window.MYWEB = {};
}
MYWEB.Utils = {
…

soba3
- 389
- 3
- 11
4
votes
8 answers
Modular data structure in C with dynamic data type
For my upcoming university C project, I'm requested to have modular code as C allows it. Basically, I'll have .c file and a corresponding .h file for some data structure, like a linked list, binary tree, hash table, whatever...
Using a linked list…

rfgamaral
- 16,546
- 57
- 163
- 275
4
votes
1 answer
how create mvc 4 modular application
i want to create modular application in asp mvc 4 like joomla cms and i want to use area for modules
and create new solution for Each modules where each modules is 3 layer (service layer- domain classes - Model) .
I use Code first.
how to…

user818566
- 323
- 1
- 6
- 10
4
votes
4 answers
Circular interpolation in Python
I have two systems, each of which has a direction sensor (0-360 degrees), but the sensors can provide wildly different values depending on the orientation of each system and the linearity of each sensor. I have a mechanical reference that I can use…

BobC
- 1,978
- 3
- 24
- 26