Gems Are Overrated
summary
Many popular utility gems are large because they solve everyone’s use cases; examples show the gap: Pagy: 2,835 → 32 lines, Pundit: 1,124 → 30 lines, LogRage: 863 → 51 lines. The approach reads a gem’s source, extracts the exact logic needed, and consolidates it into a single file (AI can automate the refactor), which reduces dependency churn, supply‑chain exposure and maintenance overhead. This applies to small focused utilities but not to crypto, large frameworks, or cases that require ongoing security patching.
AI-written summary · about
chapters (14)
- 0:00Introduction and hot take
- 3:42Who is the speaker
- 4:22Why we use gems
- 6:49The gap in gem functionality
- 7:12Pagy case study
- 10:16Pundit case study
- 12:20LogRage case study
- 15:14Benefits of copying code
- 16:18Reading gem source code
- 17:07AI's role in simplifying
- 19:02When not to copy code
- 20:33Impact on open source
- 22:15Gems as blueprints
- 23:01Closing thoughts
