I’m a big fan of Martin Fowler’s refactoring book. It is essentially a large catalog of various refactorings with an example, motivation, and several how-to steps for each one. After reading the first edition a few years ago, I thought it made me a better software engineer. I developed better coding habits and I feel like I deliver results faster and with higher quality than before. I highly recommend other engineers to get themselves a copy.
I started programming in Go in March 2019, so some of these refactorings might change over time as I become more familiar with the language. So far, I don’t think that Go is that different than other popular languages but there are certain primitives, like interfaces, that are powerful and provide different ways of doing these refactorings. I’ll try to focus on only refactorings that leverage unique aspects of Go.
So we need to tell the rest of the world how good software should be written. Good software, composable software, software that is amenable to change, and show them how to do it, using Go. And this starts with you.
I’m hoping that this will be my small part in helping Go developers build programs that are designed to last.