Go: Real world advice for writing maintainable Go programs

Skvělý, ne krátký, článek se spoustou rad pro každého Go developera, ale ne jen pro něj. Jednotlivé témata jsou natolik přenositelná, že v nich najde poučení vývojář píšící v jakémkoliv jiném, dnes používaném jazyce.

Don’t comment bad code — rewrite it.

Brian Kernighan

Good code is its own best documentation. As you’re about to add a comment, ask yourself, ‚How can I improve the code so that this comment isn’t needed?‘ Improve the code and then document it to make it even clearer.

Steve McConnell

Simplicity is prerequisite for reliability.

Edsger W. Dijkstra

Programs must be written for people to read, and only incidentally for machines to execute.

Hal Abelson and Gerald Sussman

The most important skill for a programmer is the ability to effectively communicate ideas.

Gastón Jorquera

Good naming is like a good joke. If you have to explain it, it’s not funny.

Dave Cheney

Publikováno v Go