📜 ⬆️ ⬇️

Murphy's Law

Law of first compilation
If the program works the first time, then something is wrong here.
Comment. From the first time only completely useless programs work.
The investigation. The essential program will not work as it should, never.

Debug theorem
If you assume that after a long debugging in the program there is only one mistake, do not try to catch it - you will generate at least two more.
Definition Debugging is the process of making additional errors in the program.

Error theory postulate applied to programming
An unnoticed error will emerge only during a public demonstration (the probability of its occurrence is directly proportional to the square of the number of people present).
Corollary 1. Do not debug programs alone.
Corollary 2. If the problem has N parameters, then in fact they have N + 1 plus the start time.

Rephrasing of Kozma Prutkov
Do not mess with women and interruptions.
')
Static dynamic relationship
The statistical text of the program never reflects what will happen in reality.
Corollary 1. Even the author of the program can never predict what she will do.
Corollary 2. You can never be completely sure whether a program is hanging or doing something useful.
Corollary 3. The program hangs exactly when you least expect it.

Multimodule law
Of all the procedures used by the program, those that are not written by you are disabled.

Informational mystical paradox
The program can even earn from changing one bit.
The investigation. And just as well die.

Design principle
Every good program should have at least one function that does not work, and one that is never used.
Comment. Awesome number of existing programs are remarkably good.
The investigation. But the best program is Microsoft Windows.

Law of hopelessness
Any condition has an exception, any cycle has prerequisites to hang, any program has a tendency to Run-Time Error “y.

Molecular Kinetic Analogy
A program is akin to gas - it always tries to occupy all the available memory.
The investigation. The more a program requires memory, the less is the relationship between its functional parts.

Speed ​​ratio
The speed of the program is usually inversely proportional to the speed of its writing.
Conclusion. Windows 2000 was written in a wild rush.

Microsoft law
The release without Service Pack is Beta.
Comment. A working version should be considered patched Final Service Release 2.5

Commentary axiom
Comments exist to confuse the one who sorted out.

Eeee

Source: https://habr.com/ru/post/71712/


All Articles