Asp.Net MVC programming advice. Toodles, Evan Nagle.

Posts Tagged ‘C#’

Jul
26

If you don’t know much about prototypal inheritence, no worries. For starters, check out Douglas Crockford’s super-short germinal article on the subject. Then, watch Crockford wax prototypical in this excellent (albeit somewhat boring) Yahoo presentation. Then, if you’re still hungry for more, read the Wikipedia article about Prototype-based programming here. And, finally, if you’re a fan of example-based learning, go ahead and watch this excellent Google video on Advanced JavaScript techniques.

May
26

So, yesterday, I posted what I believed to be a fairly banal post about the benefits and the possible dangers of using the new dynamic type in C# 4.0. Ultimately, when I encounter something new like generic types, I try my best to approach the foreign object (pun intended) with a touch of negative capability.

May
18

We’ve already created two T4MVC extensions. Thanks to David’s support, I shall soonly be submitting these changes to MvcContrib for possible inclusion. If you’d like to quickly catch up on this project, I’ll start this post by adding a summary of the extensions we’ve made thus far (click on the links if you want to learn more). After that, I’ll dive into something new.

May
17

When I peruse the internet, I love to find blog posts that inspire mildly nerdy controversy, or that force the blog respondents (i.e. the commenting masses, or “us”) to help pull the blogger’s face out of his own e-arse.

May
10

To begin, a shout out. If you ever need to “wrap up” a System class for TDD testing (or for fun, or for binary STD prevention), you should consider downloading SystemWrapper. It’s a nice resource, and it’ll save you from the pleasure of unnecessary keyboard typing.

SystemWrapper doesn’t have wrapper classes for Cache or CacheDependency. If you need those wrappers, you’ll find them here.

May
08

Okay. Easy enough. Let’s return to our ol’ ZipController. Here, we’ll be making some pretty substantial changes. We’ll be adding two new, hearty public methods: Style(string path) and Script(string path). With those methods, we’ll be able to cache, compress, minify, douse in old pig fat, (or, you name it) our javascript and stylesheet files before handing them over to the browser.

May
06

Tired of Firebug telling you to add expire headers to your image files? Well, here’s a quick tutorial that’ll shut the ol’ Firebug up. It’ll also help to speed your fancy lady-site up, which will surely put a smile on your mouth-adorned users’ faces.