News for hackers. Stuff that matters.
Re:Leveraging the Go Type System by tsimionescu on Tuesday February 09, 2021 @04:09PM (#26082411)
And install stringer in every dev env, and debug all the boilerplate anyway when things go wrong.

Code generation is always the last resort.

Re:Leveraging the Go Type System by dastx on Tuesday February 09, 2021 @05:35PM (#26083367)
I'm not saying it's the solution. I'm just pointing what is idiomatic go. Certainly there are arguments for and against code generation.

Where I work we are a go house, and the number of tools I've seen in our pre-commit configurations and in our development environment setup scripts is pretty intense. So is the number of questions around said tooling. There's a lot more friction than I'd expect. I can't even use lack of experience as an excuse for these questions because they're really talented people. Some of them have worked on the product for years, and have literally moulded the product's tooling into what it is today.