3 ms·
Sometimes having repeated sections makes it easier to understand the code, and later figure out how to merge the logic to remove them. Separating it out into a
by blarg1 4y ago
Sometimes having repeated sections makes it easier to understand the code, and later figure out how to merge the logic to remove them.
Separating it out into a function can obfuscate things making it harder to do that.