DEV Community

Discussion on: The Three Stages of a Developer

Collapse
 
stealthmusic profile image
Jan Wedel

And to make it absolutely clear: Code duplication in one Code base is really a code smell and must be refactored. I specifically talking about DRY at service/systems level.

Collapse
 
katylava profile image
katy lavallee

Well that depends... Having no abstraction is better than having the wrong abstraction. Sometimes it's better to write something two or even three times before refactoring to make sure you get the implementation right. Although yeah... I have rarely seen this in the same codebase.

Thread Thread
 
stealthmusic profile image
Jan Wedel

Yeah, but I would not write something three times in parallel but change and refactor until it’s right. Use git to revert to previous versions.