7 ms·
Yeah, the idea of small functions, and the overuse of DRY are separate.
by d4nc00per 9y ago
Yeah, the idea of small functions, and the overuse of DRY are separate.
- copyconstruct 9y agoAuthor of the article here. Nope, the article doesn't conflate DRY and small functions. But the quest for DRY can lead to an explosion of small functions, which isn't necessarily a good thing. The vice versa is true as well - many programmers, in their quest to make functions as small as possible, end up DRYing it up to the fullest extent as well. There's a relationship between the two, but DRY and small functions aren't synonymous themselves, and neither does the article suggest that anywhere.