- Rake tasks should be moved out of the tasks file and into model classes to allow for easier testing. This allows for mocking, stubbing, and other test isolation techniques.
- Views can be refactored to reduce duplication and improve organization. Partial templates, content blocks, and helpers can be used to DRY up views and make them more flexible.
- Content blocks and partials allow sections like page titles, sidebars, and other portions to be pulled into templates in a customizable way. This avoids hard-coding parts of pages.