Go Style Guide

This serves as a supplement to Effective Go, based on years of experience and inspiration/ideas from conference talks. Add context to errors Don’t: file, err := os.Open("foo.txt") if err != nil { return err } Using the approach above can lead to unclear error messages because of missing context. Do: file, err := os.Open("foo.txt") if err != nil { return fmt.Errorf("open foo.txt failed: %w", err) } Wrapping errors with a custom message provides context as it gets propagated up the stack....

January 26, 2021 · 11 min · Josep Jesus Bigorra Algaba

What makes a great programmer ?

If writing code were a science, all developers would pretty much be the same. But it is not. And just like in art, no two developers have the same thinking or perception while working towards the same outcome. While some struggle to produce the desired outcome, to a few, it comes almost naturally, as if an epiphany hits them at the moment they start writing code or solve a problem....

September 18, 2020 · 8 min · Josep Jesus Bigorra Algaba