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
25 votes
4 answers
9k views

Are there any negative side effects of splitting up large modules? [closed]

I was browsing a github project and found this module which has more than 10 thousand lines. Is it a common practice to have that much code in a single module? It seems to me that this should be ...
34 votes
3 answers
24k views

How to build completely modular web applications [closed]

In the coming months we're going to begin a project where we take a system we've built for a client (v1) and rebuild it from scratch. Our goal with v2 is to make it modular, so that this specific ...
  • 625
156 votes
1 answer
107k views

Module vs. Package?

Whenever I do from 'x' import 'y' I was wondering which one is considered the 'module' and which is the 'package', and why it isn't the other way around?
  • 6,165
28 votes
2 answers
67k views

Classes vs. modules in Python

Python has many modules (such as re) that perform a specific set of actions. You can call the functions of this module and get results, and the module as a whole has an idea behind it (in this case, ...
  • 667
0 votes
1 answer
3k views

How to reuse c++ code? [closed]

How do I call functions defined outside a source file given you shouldn't use header files? -- EDIT: generic(?) question below So, first, a problem should be broken down into simpler subproblems. ...
93 votes
8 answers
165k views

Using multiple Git repositories instead of a single one containing many apps from different teams? [duplicate]

I am migrating a 10-years-old big CVS repository to Git. It seemed obvious to split this multiple-projects repository into several Git ones. But the decision-makers are used to CVS, therefore their ...
  • 1,166
22 votes
3 answers
112k views

What actually is a module in software engineering? [closed]

According to Stephen Schach, “Classical and Object-Oriented Software Engineering”, chapter 6: a module consists a single block of code that can be invoked in the way that a procedure, function, or ...
  • 345
8 votes
4 answers
2k views

Why are cyclic imports considered so evil?

Seriously, what's the big deal about having a few cycles in one's import graph? I see it as a lesser evil than having super fine grained imports that make keeping track of where to look for what code ...
  • 17.1k
6 votes
1 answer
196 views

Multi-platform Map Application

I'm working on a web project (PHP, jQuery) which currently using Google Maps powering up the map functionality of the application, however we need to make it multi-platform like you can go to the ...
  • 1,963
4 votes
2 answers
178 views

Does modular programming refer to modules or programs?

As far as I can tell, the main idea in modular programming is: program pieces that work well; complex behaviour results from piece_a and piece_b working together Though, I am not sure if it ...
3 votes
5 answers
2k views

How to turn on/off code modules?

I am trying to run multiple sites using single code base and code base consist of the following module (i.e. classes) User module Q & A module Faq module and each class works on MVC pattern i....
2 votes
2 answers
2k views

one single compressed js file VS compressed requirejs module files

I just started using requirejs and I love it. I have one concern though. I've been compressing all my js files into one single file. Even with requirejs optimizer, I need to load module files from the ...
  • 515
2 votes
2 answers
868 views

With AMD style modules in JavaScript is there any benefit to namespaces?

Coming from C++ originally and seeing lots of Java programmers doing the same we brought namespaces to JavaScript. See Google's closure library as an example where they have a main namespace, goog and ...
  • 532
1 vote
1 answer
242 views

How to define vertical slice in a system whose horizontal slices are defined by Java modules?

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 ...
  • 309