Go Proverbs #51

Open
opened 2021-06-26 19:47:28 +00:00 by jeff · 0 comments
Owner

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

https://www.youtube.com/watch?v=PAAkCSZUG1c (Get timestamps)

  • 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.
https://go-proverbs.github.io/ https://www.youtube.com/watch?v=PAAkCSZUG1c (Get timestamps) * 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.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: simplesystems/go-resources#51
No description provided.