Rails Antipatterns        или    Работа над    ошибками
- DRY- Conventions overconfiguration- REST
- RTFM- KISS- Do not reinvent the wheel- Write tests
git• Use small commits• Do not store dead code• Gemfile.lock, schema.rb in VCS
Coding style rules• github.com/bbatsov/ruby-style-guide• github.com/bbatsov/rails-style-guide• Use ruby1.9 syntax if possi...
Use ready solutions, Read API• Implement emails sending using  ActionMailer• Sendgrid post event url• Sendgrid EventAPI, b...
ActiveRecord• Implement eager loading (:include  statement)• Use attr_accessible• Sanitize SQL-queries• accepts_nested_att...
CSS• Use assets pipeline• reset.css?    –   normalizer    –   modernizer    –   initializer• Avoid presentational classes
js• Use assets pipeline• Avoid inline js• js-validation    –   SVARX
Configuration• Initializers• Environments
Testing•   Rspec•   FactoryGirl•   Remarkable•   Spork•   Guard•   Capybara•   Jasmine
Questions?
 Rails Antipatterns by Ihor Novak
 Rails Antipatterns by Ihor Novak
 Rails Antipatterns by Ihor Novak
 Rails Antipatterns by Ihor Novak
 Rails Antipatterns by Ihor Novak
 Rails Antipatterns by Ihor Novak
 Rails Antipatterns by Ihor Novak
 Rails Antipatterns by Ihor Novak
 Rails Antipatterns by Ihor Novak
Upcoming SlideShare
Loading in …5
×

Rails Antipatterns by Ihor Novak

781
-1

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
781
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Rails Antipatterns by Ihor Novak

  1. 1. Rails Antipatterns или Работа над ошибками
  2. 2. - DRY- Conventions overconfiguration- REST
  3. 3. - RTFM- KISS- Do not reinvent the wheel- Write tests
  4. 4. git• Use small commits• Do not store dead code• Gemfile.lock, schema.rb in VCS
  5. 5. Coding style rules• github.com/bbatsov/ruby-style-guide• github.com/bbatsov/rails-style-guide• Use ruby1.9 syntax if possible• Avoid =begin...=end comments
  6. 6. Use ready solutions, Read API• Implement emails sending using ActionMailer• Sendgrid post event url• Sendgrid EventAPI, batch mode
  7. 7. ActiveRecord• Implement eager loading (:include statement)• Use attr_accessible• Sanitize SQL-queries• accepts_nested_attributes_for
  8. 8. CSS• Use assets pipeline• reset.css? – normalizer – modernizer – initializer• Avoid presentational classes
  9. 9. js• Use assets pipeline• Avoid inline js• js-validation – SVARX
  10. 10. Configuration• Initializers• Environments
  11. 11. Testing• Rspec• FactoryGirl• Remarkable• Spork• Guard• Capybara• Jasmine
  12. 12. Questions?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×