So these guys have a contest something like the classic 5k contest. Except the rules are stupid lenient (library and FONTS don’t count). The whole fun of the 5k contest is that the limitations are so strict it causes some real creativity.
Worst still, the first entry, by this guy, is 141.04kb with 12 requests and just shows ‘hello world’.
So, because I was up at 6 with the baby this morning I re-did the example (without pretty fonts) in under 5kb and one request. (actually only 2.2k gziped)
Doesn’t actually meet the rules, because css transitions don’t work in IE 9. Also I kind of cheated by making a document that isn’t technically valid and using a much crappier image. And I double cheated by requiring Firefox 4, chrome or safari.
Hey all. I work at flickr now.
…but I don’t think ORM is very useful. I would say that for hacking together a very simple crud interface in rails/django/whatever its really nice. But in the end, if your app has a database you ought to be writing your own queries.
UPDATE: This is a great answer to this post.
I was speaking with my colleague Matt about refactoring Javascript. One of the most common “smells” in code, or at least in my code, is duplication. A really common one for me to see several event handlers or callback functions that all do the same thing, but in ever so slightly different cases. This came up most recently when I was hacking together a routing module for a node.js project.
Read More »
I have a post up on the YUI blog. Check it out.