require() bombed my multi-threaded app!

require() bombed my multi-threaded app!

Would you like Circular Dependencies with that? In Rails we take autoloading for granted, but slow test suites and evasive multi-thread bombs too often drive us to upbraid ActiveSupport’s autoloading magic.

To dispel the magic, we will cover nothing less than the entirety of require’s modest origins, the enlightening truth of Ruby execution, a selection of minimal autoload examples, the most interesting ways to break integration specs, and utopian isolation practices. All while speeding up your test suite.

https://github.com/nybblr/ruby-code-loading

27a38e420ceeb97e61f109c4c6a0e9b4?s=128

Jonathan Lee Martin

November 13, 2015
Tweet