4 ms·
I find abstractable parts in code by thinking about potential names for it. If there is no good name for a potential common function, it's probably not a good i
by pvorb 7y ago
I find abstractable parts in code by thinking about potential names for it. If there is no good name for a potential common function, it's probably not a good idea to extract the section into a function. Maybe it can be extracted into two separate functions with good names?
- konschubert 7y agoThis is a proxy for having a well-defined purpose for a function.
- pvorb 7y agoYes, absolutely, but it's one that's easier to teach juniors.
- aj7 7y agoLike.