4 ms·
Of course fn a is simpler and more readable, simply because it's not 200-lines long and there are no indentations and there are no states to keep track of, etc.
by laserlight 3y ago
Of course fn a is simpler and more readable, simply because it's not 200-lines long and there are no indentations and there are no states to keep track of, etc. This example is not at all like a real code and is just a straw man of my argument.
DRY at any architectural level corresponds naturally to repetition of text in source files.
- kiitos 3y ago> DRY at any architectural level corresponds naturally to repetition of text in source files. The "repeat" in "don't repeat yourself" refers to semantics (data and sources of truth) and not syntax (text in source files). This is a common misunderstanding, which is one of the things that tends to separate junior and senior engineers.
- laserlight 3y agoAgreed.