DEV Community

Discussion on: Going Against Conventional Wisdom: What's Your Unpopular Tech Opinion?

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

WET isn't always bad; I often wait until I need code for the third time until I abstract it into its own method. For very simple stuff I often don't bother at all with the overhead of an abstraction and just use search-and-replace instead.

Prematurely abstracting code is a sign of someone who lacks the experience to make a good guess for whether or not certain things should be extracted from the start, or should be left until they prove to be generic enough to be extracted.