2011-01

jQuery Templates: quick start and tips

[2011-01-29] dev, javascript, webdev, clientjs
In this post, I present a short example that should explain the basics of jQuery Templates and quickly get you started. It also demonstrates a technique to cleanly handle separators between array elements. This technique applies to many other templating engines, so read on even if you don’t plan on using jQuery Templates.

Wrapping long lines in <pre> tags

[2011-01-29] dev, hack, html5

JavaScript HTML templating: overview and solutions

[2011-01-28] dev, javascript, webdev, clientjs
In this post, I give an overview over JavaScript HTML templating and list a few elegant solutions. I’ll also say which one I ended up choosing for a project of mine.

Let a big company host your JavaScript libraries

[2011-01-28] dev, javascript, clientjs
Big companies often use Content Delivery Networks (CDNs). Such a network consists of servers spread all over the world that all host the same content which ensures fast delivery. Some CDNs also host popular JavaScript libraries for the public, for free. Dave Ward gives three reasons why you might want to use such hosted libraries instead of storing them next to your own code:

JavaScript hack: send the current web page to another server

[2011-01-26] dev, javascript, clientjs
Marco Arment explains how InstaPaper works its magic. In case you don’t know: InstaPaper has a bookmarklet that, when clicked on, uploads the current web page to the InstaPaper server. Afterwards, the page can be downloaded by one of the InstaPaper apps for offline reading. Naively, you would expect the bookmarklet to send the URL of the current page to the InstaPaper server which would then crawl the contents of the page. But that would not work with sites where you need to log in. Thus, Arment implemented the following hack.

HTML5 parsing

[2011-01-21] dev, html5, webdev
John Resig has written a post on HTML5 (most people seem to write it without a space before the “5”) parsing. Before HTML5, parsing was ad-hoc. Netscape was the first popular web browser and its lenient parsing lead to many web pages containing all kinds of syntactical errors (the HTML “tag soup”). Afterwards, other web browsers mainly tried to replicate the bugs and features of the Netscape parser. Bad news: HTML5 did not opt for a much cleaner syntax. Good news: There is now a specification about how to parse HTML. It makes the tag soup the de facto standard. While it is scarily technical (you didn’t expect a grammar, did you?), it does bring stability for browser implementers.

JavaScript’s strict mode: a summary

[2011-01-20] dev, javascript, jslang
Update 2011-10-28: JavaScript: Why the hatred for strict mode?

Douglas Crockford has written a nice post on the strict mode (source: Matthias Hölzl). The following is a summary of it.

The three contexts of device interaction

[2011-01-20] dev, hci, computers
The history of computing has seen many different ways of interacting with devices and new ones are invented frequently. This post groups these interactions into three contexts and then discusses what they mean for the future of device interaction.

Brendan Eich’s dream for the next version of JavaScript

[2011-01-19] esnext, dev, javascript
Harmony is the code name of the next version of JavaScript that is currently being worked on. Brendan Eich (the creator of JavaScript) outlines what his ideal Harmony would look like.

Branding web technologies and the new HTML5 logo

[2011-01-18] dev, webdev
The branding of HTML5 continues: It now has a logo and t-shirts.