Other people's coffin
Glory 2002
A large software system typically includes a number of sub-modules. Usually, good design has such a feature:
1. Module function is simple, clear, not overlap;
2. The communication interface between the modules is clear;
3. The module coupling is small.
There are now several modules such as A, B, C ..., the B module (but not limited to B module) is responsible for generating instructions, and the A module is responsible for executing instructions, and the two modules define the format of the instructions.
The instruction generated by the B module may be incorrect in the format, or it may be correct but the content is illegal. For example, a parameter in the instruction must not exceed a certain value, otherwise A If a photo is executed, it will cause serious consequences. Obviously, the A module must have a rigorous logic analysis routine to consider all boundary conditions and abnormal conditions.
Some people now propose a "more insurance" design: the B module also implements the same instruction logic analysis routine. At first glance, it seems quite a bit, in fact ..., hey, what do you say?
The truth is actually very simple. If now C, D, E ..., etc. (third-party) modules want to send instructions to the A module? What is even more, if the business rule of the instruction analysis has changed? Do you want to modify a logical analysis routine or have a much modification?
Similarly, there are some examples that are not defective in technology understanding.
In a development team, it was originally a task, but it was done by B, or the good end module that had been developed, and B also written a "better" module similar to a function.
Whether it is a self-satisfaction of B, or someone hits the "teamwork" unprepared assignment, the consequences may be more than the consequences of an illegal instruction than the B module, which is much more serious.
Those who come from live, sound funny, often make us laugh, so that I may be the ugly corner in the joke, maybe some words have to say that the extreme can also be oscillated.
"Carrying other things in the coffin to cry", saying that this is the truth.
-Finish-