DEV Community

Discussion on: Why is your preferred programming language your go-to?

Collapse
 
matteojoliveau profile image
Matteo Joliveau

Because they really complement each other very nicely. You have the data access layer (models) and presentation layer (views and controllers) handled by Rails, and the business (transactions and operations), validation (validation schemas) and orchestration logic (autoinject and container) handled by Dry. I don't call models directly in controllers, I have service objects that transparently handles data transformation between the application and the outside world (being the front-end or the database), validating input data and integrating with external APIs or applying business rules