|
|
|
|
|
by tcfhgj
1449 days ago
|
|
> I think the article fails to show particularly problematic examples of DRY. E.g. merging two ~similar functions and adding a conditional for the non-shared codepaths. shudders Not a problem of DRY, but bad code structure. Just keep the two functions and pull the shared code-path out |
|
In these cases factorizing may or may not be a good idea.