Tricks and treats for new developers
summary
Copy database.yml into an example file and ignore the real one, split config with config_for and move magic numbers into constants, keep schema.rb in Git, never change large chunks of data inside schema migrations — three million rows will stall deployment — prefer raw SQL or use rails-data-migrations (works on Rails 5) to run data updates separately, pass ids not objects to background jobs and mailers and always use deliver_later, and enforce quality with RuboCop, Annotate, Bullet for N+1s and Oink for memory growth.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:00Why RailsConf
- 4:40Configuration Files
- 7:20Database
- 13:27Background jobs
- 16:07restful
- 18:45Rubygems
- 24:21Annotations
related talks
40mTricks That Rails Didn't Tell You About
30mCrushing It With Rake Tasks
27mScaling Ruby Applications: Challenges, Solutions and Best Practices
32mRails Sustainable Productivity
32mOperating Rails: what about after you deploy?
42mPowerful Rails Features You Might Not Know
26mDon't Rewrite Your Framework
46mLittle Snippets
