# Writing on Ruby · Jay Shah

Posts filed under Ruby. The full index is at https://jshah.dev/writing/.

## Posts

- [Encapsulate for Easy Refactors](https://jshah.dev/ruby/rails/refactor/2020/12/14/encapsulate-for-easy-refactors/) (14 Dec 2020 · Ruby): How encapsulating logic today makes tomorrow's refactor easy, shown by extending a Rails role into its own model.
- [Thread Safe Connection Pool in Ruby](https://jshah.dev/rails/ruby/connection_pool/threads/2020/05/26/thread-safe-connection-pool-in-ruby/) (26 May 2020 · Ruby): Building a thread-safe connection pool with class instance variables, a Mutex, and the connection_pool gem.
