A series of good practices that I collect over my professional life
- Avoid external side effect in transactions
- Avoid flag argument
- Avoid putting full object in background job
- Create just enough data for test
- Do not abuse
present?andblank? - Use customized exception instead of ruby-provided exception
- Use value object instead of primitive
- Use
expectinstead ofallowin rspec - Use
instance_doubleinstead ofdouble - Use
instance_doublewith string instead of class