found drama

get oblique

Tag Archives: DOM

re: Slatkin on PPK on client-side templating

by !undefined

One Big Fluke › Experimentally verified: “Why client-side templating is wrong”:

By Brett Slatkin (“One Big Fluke”).

If you followed PPK’s AngularJS post

from January (and his follow-up

client-side templating post

), then this is a worthwhile reply in its own right — and somehow I missed it when it ran.

Whereas PPK argues largely from a position of principle, Slatkin throws experiments and data at it, and while he arrives at different conclusions, he’s also gracious about the whole thing, drawing the conclusion thusly:

The take-away here is to choose the right architecture for your problem.

What’s good about this post is that he dug deep into this problem, cut it up a bunch of different ways, and remained open to the possibility that either approach might “win”. Which isn’t to say that his experiments were perfect (if some flaws aren’t obvious to you then check out the comment thread where several “improvements” are enumerated) or that there isn’t some speculation going on, but we have some good applied science here to give us a sensible picture.

Two important things here though:

First, it’s hard not to read Slatkin’s post as a refutation of PPK’s. This is unfortunate because, dogmatic though his tone may be, PPK offers up plenty of good points that you should consider when making these choices for your application. Whether you like AngularJS or not, whether you think client-side templates are a good fit for your problem or not, these thoughts are at least worth mulling over.

Which leads to my second point: it’s my sincere hope that people go with Slatkin’s real take-away, and that development teams have the discipline to look at their application, to analyze the data it’s producing about their audience etc., and to think about their goals for the future — and to design and build their applications with those data in mind. It’s entirely too easy to cargo cult decisions from posts like this one (and/or from PPK’s) and just assume that you got it right because you read something compelling from someone smart. By all means take their data into consideration, but no one else’s data is meaningful to you.

Linkdump for December 31st

by Rob Friesel

Interviewing as a Front-End Engineer in San Francisco Philip Walton: To put that another way, if a talented computer science grad, fresh out of college, with almost no front-end experience can outshine a great front-end engineer in your interview, you're probably asking the wrong questions. Whether or not you agree with him on every point, […]

Linkdump for June 18th

by Rob Friesel

Pre-generating Justified Views Ross Harmes on how the Flickr team achieved a 7× speed increase in page render times: The first time you come to any Flickr page, we store the width of your browser window in a cookie. We can then read that cookie on the server on subsequent page loads. Gotta love a […]

Linkdump for November 17th

by Rob Friesel

Chrome: Easier Web App Debugging With Multi-User Profiles Addy Osmani: I'm sure most of you know about this… No, Addy. No we did not. But that looks great, thanks for sharing! (tagged: developer tools Chrome Addy Osmani ) JavaScript DocumentFragment Short-ish piece on David Walsh's blog about using DocumentFragment. It's a bit of a review, […]

Linkdump for February 1st

by Rob Friesel

Locale::Maketext::TPJ13 at — short version: "Thar be dragons here." (tagged: programming language linguistics interesting essay ) What the Heck is Shadow DOM? at Dimitri Glazkov (tagged: javascript css html5 webdev DOM ) Lest We Forget (Or How I Learned What’s So Bad About Browser Sniffing) on FarukAt.eÅŸ — hot on the heels of the […]

Linkdump for September 30th

by Rob Friesel

50 years of cyborgs: I have not the words. at Quinn Said: I’m [kind] of annoyed that I can have a phone with GPS and even an interface to countless mechanical turks, I can have a Northpaw and I can control my fertility, I can fly anywhere in hours with money I don’t have on […]

Linkdump for September 10th

by Rob Friesel

My experience of dConstruct 2010 at abitgone+ (via DF) (tagged: essay design dev todo ) JavaScript Query Engines at DHTML Kitchen—if you can get past the implied "frameworks/libraries are always bad and you're an idiot for using them" attitude, there is some interesting discussion in there about JavaScript-based DOM querying engines. (tagged: css javascript css3 […]

Linkdump for August 24th

by Rob Friesel

Climb On! by Lisa Katayama, at Boing Boing — Absolutely awesome article. I agree with every word. (Except about the Rubik's cube; I kind of hate the Rubik's cube.) Climbing feels like playing Tetris with my body. (tagged: climbing exercise mental geek ) HTML5 Elements and Attributes (tagged: html5 webdev documentation ) Efficient JavaScript at […]

Linkdump for August 18th

by Rob Friesel

UglifyJS at GitHub (via Badass JavaScript) — a new minifier/mangler/compressor utility running in Node.js. (tagged: code javascript compression Node.js minify ) A JavaScript implementation of the Content Aware Image Resizing algorithm at Badass JavaScript — this seems to keep coming up… (tagged: canvas html5 javascript image todo ) When does JavaScript trigger reflows and rendering? […]

Linkdump for April 22nd

by Rob Friesel

More from Eyjafjallajokull at — simply incredible (tagged: Eyjafjallajokull eruption ash photography news art ) QuirksBlog: A pixel is not a pixel is not a pixel Must read. But later. (tagged: css design html webdev pixels work todo essay ) High-performance DOM scripting (tagged: DOM javascript work todo ) The words David Foster Wallace […]