Skip to content

Instantly share code, notes, and snippets.

@steveklabnik
Last active December 15, 2015 21:39
Embed
What would you like to do?
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