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

Lotus: because sometimes you need to reinvent t...

Lotus: because sometimes you need to reinvent the wheel

Arjan van der Gaag

July 08, 2015
Tweet

More Decks by Arjan van der Gaag

Other Decks in Programming

Transcript

  1. Lotus is a Ruby MVC web framework comprised of many

    micro-libraries. It has a simple, stable API, a minimal DSL, and prioritises the use of plain objects over magical, over- complicated classes with too much responsibility.
  2. testable class Show include Lotus::Action expose :book def initialize(repository: BookRepository)

    @repository = repository end def call(params) @book = @repository.find params[:id] end end