Refactoring Code: Choosing Functions Over Object-Oriented Structures in Go
Recently I needed to write a new business module that closely resembled one I had written two years ago in Go. I initially planned to adopt the old code, but it turned out to be too tightly coupled to its original context. Small modificasions wouldn’t cut it, so I decided to refactor the core logic....