4 ms·
I really appreciate you effort in pointing out the correct way to do things. In my defence I would like to point that this post was to help beginners get hands
by eryb 6y ago
I really appreciate you effort in pointing out the correct way to do things.
In my defence I would like to point that this post was to help beginners get hands on experience writing Go code, adding design patterns or organising the code base to make things "correct" will only confuse a person who has just started to learn Go.
And to be frank, I too don't have much practical knowledge about it. If you don't mind can you point me in the right direction?
- earthboundkid 6y agoI wrote a blog post about my rewrite: https://blog.carlmjohnson.net/post/2020/go-cli-how-to-and-advice/ https://blog.carlmjohnson.net/post/2020/go-cli-how-to-and-ad...
- earthboundkid 6y agoThis was a big influence on my thinking: https://npf.io/2016/10/reusable-commands/ https://npf.io/2016/10/reusable-commands/
- earthboundkid 6y agoI rewrote your app in my style: https://github.com/carlmjohnson/go-grab-xkcd/commit/3edd1c70282856f18c621b14f3cb1b57fd374e31 https://github.com/carlmjohnson/go-grab-xkcd/commit/3edd1c70...