Questions tagged [modules]

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

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

The prime purpose of modules is to provide a packaging of elements as well as encapsulation to hide the implementation details from the users of the module.

143 questions
10
votes
4 answers

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 an absolute nightmare.
dsimcha
  • 17,234
4
votes
2 answers

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 means: write multiple programs; compile each…
user2738698
  • 957
  • 1
  • 9
  • 20
3
votes
4 answers

Is a module allowed to make implicit assumptions?

I use .Net and C#. I have the following code in some module: DateTime validFrom = Convert.ToDateTime(validFromTxt.Text); This makes (in my opinion) the implicit assumptions that there is text in validFromTxt.Text that it is possible to convert…