Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

TrailBlazer: A new life for your Ruby on Rails applications

467 views

Published on

The Advanced Business Logic Framework

Published in: Technology
  • Be the first to comment

TrailBlazer: A new life for your Ruby on Rails applications

  1. 1. TrailBlazer A new life for your Ruby on Rails applications OWTG 2017 @sdogruyol 1
  2. 2. 2
  3. 3. Serdar Doğruyol ● Open Source Wizard ● Rubyist ● Crystal contributor / evangelist ● Kemal author ● Polyglot 3
  4. 4. 4
  5. 5. 5
  6. 6. rails new my-awesome-app 6
  7. 7. 7
  8. 8. 8
  9. 9. 3 months later 9
  10. 10. 10
  11. 11. MVC Model View Controller 11
  12. 12. 12
  13. 13. The Rails Way 13
  14. 14. Fat Models Skinny Controllers 14
  15. 15. Fat Models 15 Model View Controller callbacks validations concerns scopes helpers helpers More helpers Put everything else here!
  16. 16. Fat Models - Too many responsibilities (validation, delegation, authorization..) - Callback hell - Hard to test - Hard to refactor 16
  17. 17. NOPE 17
  18. 18. 18 The Advanced Business Logic Framework
  19. 19. Trailblazer gives you a high-level architecture for web applications. It extends the basic MVC pattern with new abstractions. Rock-solid conventions that go far beyond database table naming or route paths let you focus on your application code, minimize bugs and improve the maintainability. 19
  20. 20. 20
  21. 21. COMPONENTS 21
  22. 22. 22
  23. 23. 23 Controller
  24. 24. 24 Model
  25. 25. 25 Policy
  26. 26. 26 Contract
  27. 27. 27 Cell
  28. 28. 28 Cell
  29. 29. 29 Operation
  30. 30. 30 OPERATION FLOW
  31. 31. IT’S JUST RUBY! 31
  32. 32. 32 RUBY, RUBY, RUBY <3
  33. 33. TEST, LIKE YOU MEAN IT! 33
  34. 34. 34 OPERATION TEST
  35. 35. 35 CELL TEST
  36. 36. AND MORE 36
  37. 37. REPRESENTABLE 37
  38. 38. MACROS 38
  39. 39. DOCS 39 http://trailblazer.to/guides
  40. 40. THANKS! 40 @sdogruyol
  41. 41. QUESTIONS? 41 @sdogruyol

×