RubyConf 2010 - Mustache in the Front, Mustache in the Back by: Patrick Ewing

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=CxT-IVdhIRU



Duration: 29:54
68 views
2


Mustache, the tiny templating library first written for Github, now has implementations in Python, Erlang, Javascript, Scala... the list goes on. Besides the appeal of "logic-less templates," a strong selling point for this approach has been the promise that views code could be reused across language boundaries. This is the story of a "big rewrite" of the Twitter front-end with Mustache.rb and Mustache.js being used in close conjunction. The performance of Twitter's front-end servers has long been a bottleneck for scaling the service; even as many core components were being rewritten to run on the JVM, the Rails app still at its core is being redesigned to rendering work to the client while still supporting gracefully degrading in environments when Javascript is unavailable (mobile clients, web crawlers, email daemons etc.) We'll go over the perils of server-side rendering in JS using V8 and Spidermonkey and why Ruby was ultimately the language of choice there. Extensions to this simple-by-design templating libraries to allow for i18n support for an great number of languages will be explained in depth. Perhaps most importantly, we'll explore the practices developed while sharing view code between languages with very different coding conventions and developer cultures (particularly how that horrific chimera, the camel_Snake, was at last brought to its knobby knees).




Other Videos By Confreaks


2015-04-07LoneStarRuby Conf 2010 - JSON and the Argonauts - Building Mashups with Ruby by: Wynn Netherland
2015-04-07LoneStarRuby Conf 2010 - Grease your Suite: Tips and Tricks for Faster Testing by: Nick Gauthier
2015-04-07LoneStarRuby Conf 2010 - Keynote Address by: Tom Preston-Werner
2015-04-07LoneStarRuby Conf 2010 - Seven Languages in Seven Weeks by: Bruce Tate
2015-04-07LoneStarRuby Conf 2010 - Taking Mongoid into the Future by: Bernerd Schaefer
2015-04-07LoneStarRuby Conf 2010 - Battle of NoSQL stars: Amazon's SDB vs Mongoid vs CouchDB vs RavenDB
2015-04-07RubyConf 2010 - Consuming Gherkin: One Byte at a Time by: Greg Hnatiuk, Mike Sassak
2015-04-07RubyConf 2010 - Writing Games with Ruby by: Mike Moore
2015-04-07RubyConf 2010 - So You Think You Can Code?
2015-04-07RubyConf 2010 - Front End Testing Frontier by: CJ Kihlborn, Jonas Nicklas
2015-04-07RubyConf 2010 - Mustache in the Front, Mustache in the Back by: Patrick Ewing
2015-04-07RubyConf 2010 - The Grapes of Rapid by: Michael Bleigh
2015-04-07RubyConf 2010 - From Artist to Programmer by: Keavy McMinn
2015-04-07RubyConf 2010 - DSLs go Concrete by: Martin Thiede
2015-04-07RubyConf 2010 - Ruby Mendicant University: A New Way to Learn by: Gregory Brown
2015-04-07RubyConf 2010 - Classy Git by: Scott Chacon
2015-04-07RubyConf 2010 - Pwrake : a Distributed Workflow Engine for e-Science by: Masahiro Tanaka
2015-04-07RubyConf 2010 - Putting On Your Birthday Suit by: Glenn Vanderburg
2015-04-07RubyConf 2010 - Unblocked by: James Edward Gray II
2015-04-07RubyConf 2010 - LDAP: the Original "NoSQL" by: Michael Granger
2015-04-07RubyConf 2010 - Objects are Just Objects, Aren't they? by: Rick DeNatale