RubyPlus #33
https://www.rubyplus.com/podcasts/381-Episode-33
- Nanoc - Static Site Generator
- flexible static-site generator (a small personal blog to a large corporate website)
- Demystifying Rails
- this book dives one layer below the surface to expose how Rails is pieced together
- Launch School - Open Book Shelf
- Upgrading Shopify to Rails 5
- Helpful Resources for Your Rails App Upgrade
- Ruby Standard Gems
- Default gems
- Bundled gems
- Testing Cookies in Rails
- rack-test get_cookie method
- Timecop
- How We Upgraded A Very Large App from Rails 3 to Rails 4
BUNDLE_GEMFILE=Gemfile_rails4 bundle exec
- redis_dashboard
- Sinatra app to monitor Redis servers
mount RedisDashboard::Application, at: "redis_dashboard"
- nplusone_control
expect { ... }.to perform_constant_number_of_queries.matching(/INSERT/)
- Replacing a Complex Regular Expression with a Simple Parser
- Step through a string, character by character
- Append each character to a buffer
- When a token-separating condition is encountered, save the buffer to an array and empty it.
- What I learnt today from reading gems' code
- Sidekiq
- Sidekiq.redis_pool
- yielding for configuration
- ActiveSupport::TaggedLogging
- self.new in a module
- Sidekiq
- ActiveRecord callbacks: an after_commit gotchya
- callbacks can certainly enable bad design
- Ruby Code Formatter