RocknrollMarcs Coding Adventures

‘‘If you always do what you always did, you will always get what you always got.’’ Albert Einstein

Volt

| Comments

Volt

is a new Ruby webframework which reminds me of the Play framework in scala

Some of the things it has to offer:

– Sockjs Layer – Vert.x integration – SProckets replacement – Opal IRB – Volt COntributions / Reactive system – Ruby Motion support

Volt is a ruby web framework where your ruby code runs on both the server and the client (via opal.) The DOM automatically update as the user interacts with the page. Page state can be stored in the URL, if the user hits a URL directly, the HTML will first be rendered on the server for faster load times and easier indexing by search engines.

Instead of syncing data between the client and server via HTTP, volt uses a persistent connection between the client and server. When data updated on one client, it is updated in the database and any other listening clients. (With almost no setup code needed)

Pages HTML is written in a handlebars like template language. Volt uses data flow/reactive programming to automatically and intelligently propagate changes to the DOM (or anything other code wanting to know when a value updates) When something in the DOM changes, Volt intelligently updates only the nodes that need to be changed.

This is one of the greatest things if seen in a ling time.

You dont need to use javascript front end frmeoworks like AngularJS its got it all included and the best….. it crosscompiles automatically and reloads the Browser in change to….A bliss to work with.

Here is the finnished App on Heroku Heroku link.

Comments