Re:Recombine to avoid naming when naming is hard
by AnimalMuppet on Monday July 06, 2015 @12:30PM
(#9840250)
There are times to break some code out into a separate function, even though the function will only be called in one place, simply because the name of the function will make it more clear what the code is doing.
Note well: This is not "always". Do not do this with every single line of your program. This is not even "often". But once in a while, it can dramatically improve clarity.
Note well: This is not "always". Do not do this with every single line of your program. This is not even "often". But once in a while, it can dramatically improve clarity.