Skip to content

Instantly share code, notes, and snippets.

@steveklabnik
Last active December 15, 2015 21:39
Show Gist options
  • Select an option

  • Save steveklabnik/5327393 to your computer and use it in GitHub Desktop.

Select an option

Save steveklabnik/5327393 to your computer and use it in GitHub Desktop.
My brain is not threadsafe. Posted to the Ruby Parley mailing list.
If you care about writing threadsafe code, read this book:
http://www.amazon.com/Java-Concurrency-Practice-Brian-Goetz/dp/0321349601 it's
@tenderlove & @steveklabnik approved!
---------
A story.
I'm at a conference right now, listening to a talk and checking email. As I was
typing that sentence, the speaker pointed to some code on the screen, and I
looked up. During that context switch, my fingers kept typing, and when I
looked down, I had typed "If you care about writing threadsafe book, this code
read:"
My brain is apparently not threadsafe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment