Questions tagged [modularity]

Modularity describes the degree to which a system’s components may be separated and recombined. It refers to both the tightness of coupling between components, and the degree to which the “rules” of the system architecture enable (or prohibit) the mixing and matching of components.

Modular programming is a software design technique that increases the extent to which software is composed of separate, interchangeable components. This is done by breaking down program functions into modules, each of which accomplishes one function and contains everything necessary to accomplish this.

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

http://en.wikipedia.org/wiki/Modularity

http://en.wikipedia.org/wiki/Modular_programming

729 questions
0
votes
3 answers

How many GWT services

Starting a new GWT application and wondering if I can get some advice from someones experience. I have a need for a lot of server-side functionality through RPC services...but I am wondering where to draw the line. I can make a service for every…
Bruce Chidester
  • 621
  • 1
  • 5
  • 16
0
votes
1 answer

ASP.NET Interchangeable Function

Imagine I have two sites that share basic code. Most of their code matches exactly, but a couple functions don't match. For example, what if these two sites differed in the method they used for determining if the current user was using an…
user1325179
  • 1,535
  • 2
  • 19
  • 29
-1
votes
2 answers

Are tag libraries still the recommended way to improve modularity in a webapp UI?

I'd like to pack up presentation aspects of an application in a modular way; if I have a set of functionality in a separate JAR project, I'd like to keep UI elements related to that aspect separate from the core webapp code. I think that tag…
brabster
  • 42,504
  • 27
  • 146
  • 186
-1
votes
2 answers

`R` equivalent to pythons `from src.file import function, class, variable`?

I have defined three different S4 classes in their own scripts in my R package. One of those classes uses the other two classes. I see that devtools::load_all() loads the scripts in alphabetical order, so that if a script depends on another that is…
Jayden.Cameron
  • 499
  • 4
  • 17
-1
votes
1 answer

What is the correct programming practice when needing to initialize both Parent and Child class?

Recently I refactored the parent class, let's call it Fish. public class Fish { ... } Fish had a lot of functions in it that made it logical to refactor for modularity, so I created a child class, let's call it Shark. …
Alex Mm
  • 65
  • 1
  • 1
  • 7
-1
votes
2 answers

how to pass variable from one method to another within same class

I am trying to create modular code in JS and having trouble passing a variable with values to another method within the same class. I see result as '' right now. Please help! class foodApp { constructor() { this.getjsondata = '' …
theusual
  • 741
  • 2
  • 11
  • 24
-1
votes
3 answers

How can I return this "counter" value from one method into the main method?

I'm doing this problem as practice for using methods outside of the main method. The problem needed us to make three different methods, each of which does a different task, but none of them have to relate with each other. smallestNumber(): take 3…
Artvmvs
  • 9
  • 2
-1
votes
1 answer

What's the proper way to share the interface?

What if I have a project that relies on the abstraction(interface) but does not contain any implementation for this interface. Therefore I want to give that interface to someone who can implement it so I (or someone else who is going to use my…
THE Waterfall
  • 645
  • 6
  • 17
-1
votes
1 answer

How to pass functions as parameters of another function with pre-specified arguments in python?

Is there a way to pass function with arguments that looks clean? For example, if I want pass function h with particular parameter-values a b from ars so that ars1 runs with these particular a b, what should I do? I want to do def h(x, a, b): …
ZHU
  • 904
  • 1
  • 11
  • 25
-1
votes
1 answer

Java 9 Modularity with a packages

Let's say I have 2 modules: module1 has the package package1 module2 has package2, package3 and package4 I want package1 to be visible to only package2 in module2. not to any other packages (package3 or package4) in module2. Is this possible using…
James
  • 441
  • 2
  • 6
  • 9
-1
votes
2 answers

How do I make a modular function?

I like to make really modular programs but it gets hard to track which functions are subroutines of other functions. Thus, I'd like to define subroutines inside of the parent functions. With Python's object-definition of functions this would be a…
Default picture
  • 710
  • 5
  • 12
-1
votes
1 answer

Python modularity best practices

I've been struggling conceptually with the design of my large program. The general layout is something like this: def mainFunc(parm_1, parm_2, ..., parm_n): # do step 1 # do step 2 # ... # do step m My question is this: Should I make each…
jjet
  • 155
  • 2
  • 7
-1
votes
2 answers

How to easily modularize Javascript like C/C++

I have a large project entirely built in JavaScript, I have an ordered and "inside modularized" 5k lines .js file that's the engine of whole site. Now I have to make other site (extension of this one) in which I'll have to repeat a lot of code, my…
-1
votes
1 answer

How can I integrate modularity into my code in C?

I don't know much about modularity except it's basically dividing up your code into smaller groups of functions (this question is for the C language). I'm doing an assignment where I can only see my source code working with one giant nested loop in…
-1
votes
1 answer

Scala way of if else with two conditional variables

I have a the following Java snippet (where a and b are futures): if (a.isEmpty && b.isEmpty) func(list) else if (a.isEmpty) func(list, b) else if (b.isEmpty) func(a, list) else func(a, list, b) I have all the implementations of the function…
NPK
  • 123
  • 1
  • 9
1 2 3
48
49