Rails refactoring call for help

1,546 views
1,417 views

Published on

I'm working on techniques that help you safely refactor your Rails codebase. At the start I'm mostly focusing on the Rails controllers.

You can sign up at http://rails-refactoring.com/ for free rails refactoring lessons.

Meanwhile, please send me more examples of Rails controllers, so that I can discover better patterns.

andrzejkrzywda@gmail.com

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

No Downloads
Views
Total views
1,546
On SlideShare
0
From Embeds
0
Number of Embeds
20
Actions
Shares
0
Downloads
9
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Rails refactoring call for help

  1. 1. dear Ruby friends
  2. 2. It’s fun to talk about …
  3. 3. Microservices, bounded contexts, DDD, DCI, Hexagonal, Clean Architecture, UncleBob, events, CQRS, streams, microapps
  4. 4. but…
  5. 5. Then we go back to our controllers
  6. 6. so called, real life
  7. 7. Can you safely improve it? ! step by step? ! quickly?
  8. 8. it’s difficult
  9. 9. but possible ! even without tests
  10. 10. safe techniques include:
  11. 11. • inline controller filters • move model callbacks into controller • render views explicitly without @ivars • move action to a new class (service object) • …
  12. 12. I need more examples of ugly controllers and models
  13. 13. Send them to me, please :) ! @andrzejkrzywda andrzejkrzywda@gmail.com
  14. 14. I will add it to my book! ! fame forever
  15. 15. http://rails-refactoring.com/

×