Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Off the Rails - alternatives in the wild

Off the Rails - alternatives in the wild

How you can design on top of Rails, alternatives frameworks to Rails (Hanami), or enhancements (Trailblazer)

Monica Giambitto

February 08, 2017
Tweet

More Decks by Monica Giambitto

Other Decks in Programming

Transcript

  1. OFF THE RAILS
    alternatives in the wild

    View Slide

  2. RAILS
    Controller
    Model View
    Helper
    Concern

    View Slide

  3. FREELETICS
    Validator
    Controller
    Model View
    Presenter
    Interactor
    Service

    View Slide

  4. Helper
    Model
    HANAMI
    Controller
    View
    lib apps
    Entity
    Repository
    Template
    Action

    View Slide

  5. TRAILBLAZER
    Controller
    Model
    Cell
    Policy
    Operation
    Contract Callback
    View
    Representer

    View Slide

  6. TRAILBLAZER - OPERATION
    Orchestrator service object for business logic
    module BlogPost
    class Create < Trailblazer::Operation
    success :hello_world!
    step :how_are_you?
    success :enjoy_your_day!
    failure :tell_joke!
    # ...
    end
    end

    View Slide

  7. THANKS!
    @KFMOLLI
    GITHUB.COM/NIRNAETH
    SPEAKERDECK.COM/NIRNAETH

    View Slide