Ataraxia through Epoché

Symphilosophein 狂者進取,狷者有所不為也。

Nov 5, 2019

[Go] Go Proverbs

Reference:
https://go-proverbs.github.io/

Go Proverbs
  • Simple, Poetic, Pithy
  • Don't communicate by sharing memory, share memory by communicating.
  • Concurrency is not parallelism.
  • Channels orchestrate; mutexes serialize.
  • The bigger the interface, the weaker the abstraction.
  • Make the zero value useful.
  • interface{} says nothing.
  • Gofmt's style is no one's favorite, yet gofmt is everyone's favorite.
  • A little copying is better than a little dependency.
  • Syscall must always be guarded with build tags.
  • Cgo must always be guarded with build tags.
  • Cgo is not Go.
  • With the unsafe package there are no guarantees.
  • Clear is better than clever.
  • Reflection is never clear.
  • Errors are values.
  • Don't just check errors, handle them gracefully.
  • Design the architecture, name the components, document the details.
  • Documentation is for users.
  • Don't panic.
Posted by vsdmars at 9:14 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: golang, golang_proverbs

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

About Me

My photo
vsdmars
是日已過,命亦隨減,如少水魚,斯有何樂? 大眾!當勤精進,如救頭然,但念無常,慎勿放逸!
View my complete profile