Skip to content

Instantly share code, notes, and snippets.

@xecutioner
Created March 13, 2017 04:11
Show Gist options
  • Save xecutioner/8f854d123138ab8f5481a4df99b2f868 to your computer and use it in GitHub Desktop.
Save xecutioner/8f854d123138ab8f5481a4df99b2f868 to your computer and use it in GitHub Desktop.

Best practices for software development using Rails.

  • TDD all the way.
  • Code Coverage and other metrics.
    • simple_cov and metric_fu
  • No Logic in views use rails helpers and implement partials for DRYness.
    • app/helpers
  • No Business Logic in controllers.
    • No more than 5 lines in a method , No more than 100 lines in a class.
    • Fat Models skinny controllers. ( Later we will look into service and policy objects)
  • DRY
  • Application configuration parameters management.
    • User figaro or dotenv.

TOOLS

  • TDD
  • simple_cov
  • metric_fu
  • rails_best_practices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment