2 ms·
> duplicating code is never the right answer. Say you have (a*b+c)*2.0f+d several places in your code with potentially different a b c d variables. Are you re
by cma 5y ago
> duplicating code is never the right answer.
Say you have (a*b+c)*2.0f+d several places in your code with potentially different a b c d variables. Are you really going to make up a new name for it as a function? It's much easier to just read the expression to know what it does than to memorize a new name for every possible small occasionally duplicated expression.
- deleted 5y ago[deleted]