April 2009 - Karl Seguin

Karl Seguin

Sponsors

The Lounge

Wicked Cool Jobs

Advertisement

  • Presenting CodeBetter.Canvas

    UPDATE: A new version is available, read more at http://codebetter.com/blogs/karlseguin/archive/2009/05/25/revisiting-codebetter-canvas.aspx I recently wrote a code-heavy 3-part series on validation. Half-way through, I realized that a sample application would probably help bring together all the incoherent...
  • Validation - Part 3 - Server-Side

    Validation - Part 3 - Server-Side <Update> You can download the sample application from here . Sorry, it turned into more than just a demo of the validation stuff. </Update> So far we've built-up a small foundation for a custom validation framework in part 1 , and then tied that to a...
  • The 7 Phases of Unit Testing

    1 - Refuse to unit test because "you don't have enough time" 2 - Start unit testing and immediately start blogging about unit testing and TDD and how great they are and how everyone should do it 3 - Unit test everything - make private methods internal and abuse the InternalsVisibleTo attribute...
  • Validation - Part 2 - Client-Side

    Validation - Part 2 - Client-Side In Part 1 we looked at our basic framework for validation - a set of attributes, an interface, and some configuration objects. Now we'll see how these can be used in conjunction with jQuery to provide client-side validation. As we already saw, every validation attribute...
  • Validation - Part 1 - Getting Started

    There are a lot of good and free frameworks to help you deal with validating user-submitted data. You can use attribute-based frameworks, such as Castle Validators or .NET 3.5 Data Annotations to decorate your objects with simple rules, and then leverage frameworks such as xVal or the MVC Validation...
  • www.asp.net costs millions to run?

    For those who missed it, Joe Stagner commented that www.asp.net costs millions of dollars to run. Since Joe was a little vague about exactly what that meant, I'm going to assume that he's talking about straight-up yearly hosting costs (because it was in the context of hosting, and if that was...
  • Is ASP.NET MVC a half-baked solution?

    Earlier this morning, I commented on twitter that I was starting my 2nd full-fledged ASP.NET MVC project, and was finding myself writing a massive amount of infrastructure code. Ironically, having to write so much infrastructure code was a major complaint I had against both Oxite and Kobe . A number...
  • Tidbit - svn:externals

    Not too long ago, I had a need to tie a number of svn repositories together. What I wanted was to create a 1 repository with a number of sharable assets (images, language files, 3rd party libraries, shared code) and have other repositories somehow link to it. The way I had handled this in the past was...
  • Kobe - Oh Dear Lord Why?!

    Update Microsoft has kindly decided to remove the download and fix the issues before re-releasing it. Additionally, there's a good dialog going on, mostly on twitter, but also on Phil Haack's blog . Ayende also posted 7 or so posts about Kobe and related topics, which are worth a read. Roughly...
  • Don't be afraid of complex constraints

    The nice thing about mocking frameworks is that they let you test the interaction of your units painlessly. For example, given the following code: public class UserRepository { private readonly IDataStore _store; public UserRepository(IDataStore store) { _store = store; } public User FindById(int userId...
Devlicio.us