Rails as a piece of birthday cake
July 14, 2023
46 min
Free
ruby
ruby-on-rails
layered-architecture
abstraction-layers
code-maintainability
service-objects
form-objects
web-hooks
mvc
software-architecture
domain-driven-design
refactoring
Description
This talk explores the Ruby on Rails framework's Model-View-Controller (MVC) pattern and how, over time, applications can become complex and difficult to maintain. Using the analogy of a birthday cake, the speaker suggests that adding more layers of abstraction, rather than increasing the size of existing ones, is key to building scalable and maintainable applications. The presentation delves into the principles of layered architecture, good abstraction practices, and practical examples of refactoring code in Rails to improve structure and reduce complexity. It also touches upon the appropriate use of service objects and form objects within the Rails ecosystem.