December 2009
1 post
3 tags
Managed XHR Injection
Update (2009 Dec 2 @ 12:09PM): I started to question if Managed XHR Injection was all unnecessary fluff or if I could just write script tags to the page. Then I reread parts of Chapter 4 and realized that Managed XHR Injection parallelizes downloads and ensures execution order in all browsers, something that neither the Script DOM Element nor document.write Script Tag approach offers. (Script DOM...
Dec 1st
November 2009
3 posts
2 tags
Underscore.js
I’ve been playing with Underscore.js a bit lately. “It’s the tie to go along with jQuery’s tux.” It is not a jQuery plugin nor does it require jQuery in any way. But it is designed to complement jQuery. About half of Underscore’s 50-ish functions are for working with collections and arrays. Another subset work with objects (comparisons, evaluations, etc.). ...
Nov 20th
1 note
3 tags
Even Smaller
This is a follow-up to Replace MicrosoftMvcAjax.js. I combined the handle and click functions into a single function declaration. That allowed me to reduce two functions into one and remove two convenience functions. I also modified the error and complete callbacks to return the status code instead of the less granular “error” or “success”. Here’s the new...
Nov 19th
3 tags
Replacing MicrosoftMvcAjax.js
Update: I’ve written a follow-up, Even Smaller. I’m a big fan of ASP.NET MVC. However, it requires a couple of bulky Javascript files to do its magic. MicrosoftMvcAjax.js weighs in at 4,870 bytes. It however utilizes a few functions from MicrosoftAjax.js, which is a whopping 99,358 bytes. And those are the minified and obfuscated copies. Maybe I’m just jaded by ASP.NET...
Nov 13th
September 2009
10 posts
1 tag
“[Netflix’s recommendation system] spreads demand across its inventory in...”
– Netflix’s Tail Massage
Sep 28th
1 tag
Judge Orders Google To Deactivate User's Gmail... →
Punish the victim.
Sep 25th
2 tags
“The Apple App Store is a “flash in the pan” because it is a...”
– Apple locked us in, but how long will the jail sentence last?
Sep 24th
1 tag
The Ultimate Productivity Blog →
Indeed.
Sep 24th
2 tags
“Between the tiny [South] Dakotan hamlets of Meadow and Glad Valley lies the...”
– Where The Buffalo Roamed
Sep 24th
“I’d rather offend people needlessly than use needless words, and you have...”
– Persuade xor Discover
Sep 23rd
2 notes
“The really interesting question is not what will happen to existing forms, but...”
– Post-Medium Publishing
Sep 23rd
1 tag
Sep 13th
“We can imagine will and discipline as two fingers squeezing a slippery melon...”
– The Anatomy of Determination
Sep 11th
3 tags
Generic Identity Map in C#
Background I’m writing a Data Access Layer for a personal project and wanted to implement Martin Fowler’s Identity Map pattern. Since the code to store and access business objects would be identical for all types in my DAL, I wanted to write a single generically-typed class that would serve as the map for any of my types. Problem The purpose of an identity map is to prevent an...
Sep 11th