Missing abstractions
Most web frameworks have excellent abstractions for routing, rendering, and databases. When it comes to organizing business logic, however, you're left alone.
The existing places, such as controller actions, models, callbacks and hand-tailored service objects, lead to codebases hard to maintain.
Our toolbox
Instead of cluttering your code over the entire MVC framework, Trailblazer introduces a bunch of new abstractions, with a standard service object leading the way: the operation.
Code is organized into small chunks we call steps. The operation helps to structure your logic and takes over flow control.
Bullet-proof conventions
While you can focus on developing your app and writing code that matters, Trailblazer gives you automatic error handling by letting you apply the Railway pattern to your logic.
This not only saves you tons of if
and else
s but provides clever ways to reuse huge parts of your code by supplying inheritance and composition mechanics to structure your application.