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

Ratchet & Jank

Jay Hayes
October 15, 2016

Ratchet & Jank

Reduce the complexity of web development by generalizing view transformation on the server and client.

Jay Hayes

October 15, 2016
Tweet

More Decks by Jay Hayes

Other Decks in Programming

Transcript

  1. <% if [earth, moon, sun].all?(&:aligned?) %> <figure> <%= moon.between?(earth..sun) ?

    sun.eclipsed : moon.eclipsed %> </figure> <% else %> <% if earth.daytime? %> <figure><%= sun.shine %></figure> <% else %> <figure><%= moon.shine %></figure> <% end %> <% end %>
  2. Ugh

  3. <article> <h2> </h2> <p> </p> </article> <% @posts.each do |post|

    %> <%= post.name %> <%= post.body %> <%= link_to post.id, post %> <% end %>
  4. <article > <h2 ></h2> <p ></p> <a ></a> </article> data-prop=“post”

    data-prop=“name” data-prop=“body” data-prop=“link”
  5. Eh?

  6. APP

  7. APP

  8. Eh?