Questions tagged [modularization]

42 questions
76
votes
6 answers

Why is it so bad to read data from a database "owned" by a different microservice

I have recently read this excellent article on the microservice architecture: http://www.infoq.com/articles/microservices-intro It states that when you load a web page on Amazon, then 100+ microservices cooperate to serve that page. That article…
David
  • 4,449
  • 6
  • 35
  • 48
19
votes
2 answers

Composing large Angular 2 app with multiple small apps within

After long 3 months of debate and research in choosing between React (with Redux) and Angular 2, front-end team in my company has concluded to go with Angular 2 (given that it is more suited for our problem). We're into enterprise app business,…
11
votes
2 answers

How to cleanly separate different parts of a software application?

I am designing a new application that deals with a lot of business logic. To avoid the usual entanglement between different application layers that often sneaks into such systems over time, I want to implement clean separation of concerns right from…
B.M.
  • 111
  • 5
10
votes
7 answers

Did Dijkstra intend for code modularization, when he wrote about separation of concerns?

First, I read an excerpt Edsger W. Dijkstra's 1974 paper "On the role of scientific thought": Let me try to explain to you, what to my taste is characteristic for all intelligent thinking. It is, that one is willing to study in depth an aspect of…
Dennis
  • 8,157
  • 5
  • 36
  • 68
8
votes
5 answers

Is it wise to rely on optimizations?

Should I write my code to be clear what I am doing and rely on the optimizer to clean up my code efficiency, or should I be obsessive about getting every last ounce of power out of my code? And how much speed/size am I losing on by choosing one…
DarthRubik
  • 209
  • 1
  • 6
5
votes
7 answers

Splitting up a very large function/program into smaller functions. Effective?

I know function names can be very expressive. And therefore it can be tempting split up a program into particular functions and call them from a large "oversee-able" functions file. However is this actually effective for a programmer? Since each…
4
votes
4 answers

What is module in Software engineering context?

In Software engineering , I usually see that the word module when written it usually followed by a bracket (components, packages, classes … etc.) meaning that a module can be a class or a package or a component. I know that a module is a piece of…
John adams
  • 493
  • 1
  • 4
  • 12
4
votes
1 answer

How can customer specific implementation be handled?

How can I handle customer specific implementation. So for example a custom needs a different way to show data, a different model or a different logic. I've read about HMVC but I can't find frameworks that support it. Should I handle the problem by…
rockson
  • 43
  • 4
4
votes
2 answers

How should one modularly implement related objects?

I tried to make the question title as generally applicable as possible, but I'm not certain I worded it so well. It was brought about by a very specific problem I'm having, and for the remainder of this question I'll just try to describe that. I'm…
Jordan
  • 143
  • 4
3
votes
1 answer

Shared library and modules with versioning

I have different versions of modules and they should all work together with the same shared library which could also have different versions like displayed in the image below: From a daily use perspective, should I always use the latest version of…
TomatenSalat
  • 732
  • 1
  • 5
  • 9
3
votes
2 answers

Modulizing vs Performance benefits

Modulizing software from my empirical experience seems to decrease performance, most of the overhead can be communication of modules, redundancy in computation, storage and depending on the application can be at a less or greater extend or can be…
user99355
  • 49
  • 2
3
votes
1 answer

Leo Brodie's "Interface Component"

On page 85 of Leo Brodie's book, Thinking Forth, he describes a component which he calls the "Interface Component." He describes its differences from, and benefits over a standard interface as follows: When it comes to data interfaces between…
dmux
  • 151
  • 4
2
votes
2 answers

Modular programming: module inter-dependency

I'm looking to make a clean modular architecture. I hear all around how bad are circular dependencies, and I'm convinced that the less two modules are coupled, the most reusable the code will be. But I want to handle edge cases where moduleA depends…
TOPKAT
  • 131
  • 5
2
votes
1 answer

Put functionality in same executable with command-line flag, or put it in a separate executable?

Background: I am working on a service where the domain logic exists as a library, and then the actual executable is built on a web framework as a wrapper around the domain logic library. There is no guarantee two customers run the same version of…
2
votes
1 answer

Parnas' Paper on Modularization and Workflow Engines

In a Software Engineering class, we had an assignment to read Parnas' seminal paper on modularization [0]. In this paper, two approaches of dividing a software into modules are discussed: Traditional Approach: A flow chart is drawn to work out the…
1
2 3