4 ms·
Having it all in one tested function means it’s much easier to keep in line. Woe be the one that decides to change a common section in something coopied all ove
by Aeolun 2y ago
Having it all in one tested function means it’s much easier to keep in line. Woe be the one that decides to change a common section in something coopied all over the codebase.
Modifying those boolean flags within the context of your tests is practically free. Trying to merge 4 files into one is… not.
- tasuki 2y agoHave four public api functions, which call a private function underneath to avoid the duplication. Everyone is happy.