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...
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.).
...
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...
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...
September 2009
10 posts
1 tag
[Netflix’s recommendation system] spreads demand across its inventory in...
– Netflix’s Tail Massage
1 tag
Judge Orders Google To Deactivate User's Gmail... →
Punish the victim.
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?
1 tag
The Ultimate Productivity Blog →
Indeed.
2 tags
Between the tiny [South] Dakotan hamlets of Meadow and Glad Valley lies the...
– Where The Buffalo Roamed
I’d rather offend people needlessly than use needless words, and you have...
– Persuade xor Discover
The really interesting question is not what will happen to existing forms, but...
– Post-Medium Publishing
1 tag
We can imagine will and discipline as two fingers squeezing a slippery melon...
– The Anatomy of Determination
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...