On Friday, June 24, 2016 at 3:27:43 PM UTC-3, Nick Pavlica wrote:
>
> It makes me want to just wrap every variable in a Mutex to be safe.
>
 
A sure path to craziness.
 

>  I'm guessing that the pattern is to keep Go programs as small as possible 
> so you can track all the corner cases effectively in your own mental model. 
>
 
You don't need to keep Go programs small. Make small components inside your 
Go program. Learn Go idioms.
Limit the visibility of your entities and make use of channels to 
coordinate parts, avoiding simultaneous access.

 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to