|
|
|
|
|
by a1369209993
745 days ago
|
|
> such as the practice of decomposing every non-trivial function into a bunch of micro-functions that call each other, That has approximately nothing to do with DRY. At best it might technically be a violation of DRY if (and only if) some of those micro-functions are identical, but the correct way to fix that is to recompose them into the non-trivial (and non-repeated) functions they're more usefully expressed as. And more often it's just a totally independent refucktoring that makes the codbase worse entirely orthogonally to 'DRY-ness'. |
|