Wednesday, July 18, 2012

Ruby on Rails development notes, tips, practices

Development
  • Performance tuning tools:
    • New Relic
  • Useful tips:
    • Use rails console to counter check the SQL statements being executed.
Testing
  • Unit tests should be written in a way that adding new records in test fixtures shouldn't affect the previous test results.  
  • New test fixtures should be added in a way that they should link to existing fixture data so as to avoid breaking existing test cases.
Quality Assurance
  • Besides unit, functional and integration test within rails framework.  Create automated browser test using tools like "Selenium" over test/real data.
Maintenance
  • Avoid using unnecessary code reflection.  It's not good for performance and maintenance.



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.