Why Simple Code is Better Than Reusable Code

Dan Goslen
4 min readOct 4, 2019
Photo by Ethan Cull on Unsplash

Don’t Repeat Yourself (DRY). It’s basically a law of programming, especially object oriented programming. The whole idea is that you should aim for reusability of objects, functions, etc. where possible and if you find yourself copying code from place to place, you have gotten something wrong.

It’s a great heuristic, for your code, but it can also lead to some really ugly stuff. Places…

--

--

Dan Goslen

Jesus follower | Husband | Dad | Software engineer. Helping devs build better teams