7 points · by chrisshroba · 11y ago · 6 comments
I'm currently learning Go, and understand most of the syntax and everything, but I fear if I just start blindly writing my own applications in it, I will take on a pythonic approach, since that is my current best language. How do I avoid this?
I do love using JetBrains tools and editors, since they generally have pretty good linting and stylistic rules engines built in. Mostly, I work in C#, and ReSharper has improved the quality of the code I write immeasurably. At the very least, it helps evolve you towards a consistent style, but it can also suggest more idiomatic usages in some cases.
Or start with smaller/less interdependent packages, if the larger ones seem too complicated at the beginning (just browse until you find ones that seem grokkable).
Maybe look at stuff like input/output param patterns, naming (terse!), composition, etc.
Ha, "pointers":
https://groups.google.com/d/topic/golang-nuts/H7LrVJhXyv4/di...
https://groups.google.com/d/topic/golang-nuts/x-huAZm8yP0/di...
https://groups.google.com/d/topic/golang-nuts/EfLHIHFNsjA/di...