Browse by Tags

All Tags » C# (RSS)

“Try to avoid foreach/for loops”–Over my Dead Body!

Before I get into this a little bit, know that my comments are a direct response to this post: http://www.codekicks.com/2011/01/try-to-avoid-foreachfor-loops.html . The reason I’m writing this post is because the author is making invalid comparisons through...
Posted by zowens | 8 comment(s)
Filed under: , ,

ASP.NET JavaScript Routing for ASP.NET MVC–Constraints

If you haven’t had a look at my previous post about ASP.NET routing, go ahead and check it out before you read this post: http://weblogs.asp.net/zowens/archive/2010/12/20/asp-net-mvc-javascript-routing.aspx And the code is here: https://github.com/zowens...

Mulit-tenant ASP.NET MVC – Controllers

Part I – Introduction Part II – Foundation The time has come to talk about controllers in a multi-tenant ASP.NET MVC architecture. This is actually the most critical design decision you will make when dealing with multi-tenancy with MVC. In my design...
Posted by zowens | 4 comment(s)

Filter IQueryable by String for ASP.NET MVC

In ASP.NET web applications, mostly seen in MVC, it is really nice to have a standard way to filter a query based on a pre-defined set of combinators. It is often annoying to have to test for different Request parameters in a controller action for MVC...

ClubStarterKit – Caching for performance

First of all, if you haven’t heard, I recently released ClubStarterKit v3 Preview. If you haven’t had a chance to look at it, I highly encourage you to take a look at the whole new codebase . My whole goal when building any application whether it’s an...

ClubStartKit is Reborn… With a new release

The title says it all. That’s right, I’m back on ClubStarterKit. I’ve tried to assure the CSK community in past blog posts that it isn’t dead. In the last year, I’ve done a lot of thinking and outside programming. I’m FINALLY in a position where I have...

Maybe Monad… my C# version

Functional programming isn’t a new concept. There is Scheme, Haskell and a bunch of other really cool languages. But new on the block is F#. F# is Microsoft’s stab at creating a functional programming in the .NET world as a first-class language. Functional...
Posted by zowens | 3 comment(s)

ClubStarterKit - where do we go?

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...

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

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; } }
Posted by zowens | 12 comment(s)
Filed under: , , ,

Misuse of Delegates???

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...
Posted by zowens | 9 comment(s)
Filed under: , , ,
More Posts Next page »