Recent Posts

0
Comments

Cache Abstraction by zowens

I'm in the middle of a project and I wrote my own Cache logic that melds nicely to my project's needs. But how do I test it? I can't mock the System.Web.Caching.Cache class. So I looked in the Abstractions that ship with ASP.NET MVC. What do you know...
35
Comments

ClubStarterKit - where do we go? by zowens

Wow, what a year. Not exactly what I'd expected. Before I dive into where we are now, let me preface this post by saying I have NOT forgotten ClubStarterKit! Although I was not the original author, I feel like it's my baby. I can't just forget about it...
11
Comments

One-Line C# #1 : Remove Whitespace from a string by zowens

Thought I'd post a quick extension method that I made today. Hope it helps someone. public static string RemoveWhitespace( this string str) { try { return new Regex( @"\s*" ).Replace(str, string .Empty); } catch (Exception) { return str; } }
Filed under: , , ,
9
Comments

Misuse of Delegates??? by zowens

In the evolution of the ideas presented in Java, C# has provided the idea of method delegation and delegates, which I'm sure you are well aware of. In C# 3.0 with the introduction of the LINQ, Lambdas were born. With Lambdas, we are able to provide an...
Filed under: , , ,
8
Comments

ASP.NET MVC CSS Sprite by zowens

A month ago, I wrote about my technique to output a CSS sprite for ASP.NET . Granted, I made a big mistake. I put WAY too much bloat into the post. Not a K.I.S.S. moment. I have reworked my CSS sprite technique to be unique to MVC. I've used the most...
1
Comments

Source Code conversion as part of a Build Process by zowens

If you're like me, you want a particular piece of code in your particular language. For example, a lot of people want the Club Starter Kit 2.0, 3.0 in C# since it has been written in VB. Me being the lazy open source developer that doesn't get paid :...
1
Comments

High Interface diet by zowens

As long as I'm on the coding conventions track (as many of users have commented on my last post ), I'll talk about a small coding convention I am trying to do. I feel more compelled to push an interface into a property, method, or any declaration rather...
21
Comments

Coding Pet Peeves by zowens

Any experienced coder has pet peeves when it comes to reading other people's code or writing code. It might be that you don't like regions or that every method should have comments. But here are my two biggest pet peeves when it comes to C#. Var abuse...
Filed under: , ,
6
Comments

CSS Sprite for ASP.NET by zowens

CSS sprites are becoming popular as a way to increase application performance by eliminating HTTP requests by the client to the web server. It also serves as a path for better cache management. I will need to go through a bit of background before we start...
15
Comments

Improve ASP.NET Performance - CSSmin by zowens

If you follow Douglas Crockford's wor k, you might know about JSMin , a bit of code written for various languages to optimize JavaScript to make it smaller. One thing it does is makes everything go to one line, eliminating some of the space by removing...
More Posts Next page »