How I Structure Code

Darin Heavilin
4 min readFeb 13, 2021

The way we write code has changed over the years. In the 10+ years I’ve been writing code, I’ve followed different practices to “speed up development” or make code “more manageable” or “more readable”. It seems we as software engineers are always looking for ways to make our lives easier. We have to work in the code we write everyday, so why wouldn’t we want to make it easier, less frustrating, and less error-prone?

My style of writing code has been molded over the last couple of years. It’s based on domain driven design (DDD), with some shortcuts. It’s not perfect and may not work for…

--

--