3 ms·
Most of the comments dealing with error handling and interfaces are just stuff I grew used to having done Java for so long. However, for me personally, in a mod
by tmm84 4y ago
Most of the comments dealing with error handling and interfaces are just stuff I grew used to having done Java for so long. However, for me personally, in a modern software development sense the pain point that I have with Go is unit test mocks and dependency injection. I remember spending a good afternoon trying to figure out how to setup some mocks and do some DI for some tests I was creating. I figured it out but it felt backwards and the code looked just as backwards to me. I tried to explain why we should do DI and mocks for tests but after showing the code to other developers it was a hard sale. The style and readability just wasn't there for them. I have respect for the Go language but maybe in the future mocks and DI will become easier or more natural looking.