Introducing Lotus::Controller

Lotus development is going well. The experiment of open source a framework per month is sustainable. I have the time to cleanup the code, write a good documentation and deliver great solutions. This month, I’m proud to announce Lotus::Controller. It’s a small but powerful and fast framework. It works standalone or with Lotus::Router and it implements the Rack protocol. Actions The core of Lotus::Controller are the actions. An action is an HTTP endpoint. »

Author image Luca Guidi on #lotus,

Building Sinatra with Lotus

The beauty of Lotus is the composition of its frameworks. Each of them is well designed to achieve one and only one goal. The main advantage of this architecture is that delevopers can easily use and reuse those frameworks in countless ways. Lotus::Router accepts anonymous functions as endpoints. This feature can be used to build Sinatra with it. Initial setup We need to setup a Gemfile with: source 'https://rubygems.org' gem 'lotus-router' As second step, we create an Hello World application with Lotus::Router (run with rackup application. »

Author image Luca Guidi on #lotus,

Introducing Lotus::Router

For me, the first step in the long path of building a web framework was an HTTP router. By understanding requests coming from an user, it pays back with an immediate gratification: start it, open a browser and see a result. My hope was to embark on a short journey, and reuse as much as possible existing libraries. But I soon discovered that the biggest problem of Ruby web frameworks is reusability of components. »

Author image Luca Guidi on #lotus,

Announcing Lotus

I’m pleased to announce Lotus: the Open Source project I’ve conceived, hacked and built during the last year. Lotus is a full stack web framework for Ruby, built with lightness, performances and testability in mind. It aims to bring back Object Oriented Programming to web development, leveraging on stable APIs, a minimal DSL, and plain objects. Standalone frameworks It’s composed by standalone frameworks (controllers, views, etc..), each one is shipped as an independent gem, in order to remark the separation of concerns. »

Author image Luca Guidi on #lotus,

On Happiness

As a naive younger man, I have always been disappointed by how many year resolutions have missed in the past. Mostly because they are a failure by design: the wishful self is delighted to dictate the new agenda of change, where all the lazyness, tiredness, and unforeseen accidents will magically disappear to leave room to a bright, joyful and productive future. This will never happen. What really works is to plan nothing If you aim to write more, just find the time and do it. »

Author image Luca Guidi on #life,