Karl Seguin

Karl Seguin

Sponsors

The Lounge

Advertisement

  • NHibernate : Handling the Special Cases

    In my last NHibernate post I mentioned that NHibernate is great because it does the heavy lifting for the common tasks that make up 95% of my data access layer, while letting me tweak the remaining 5% as needed. Let's look at some of the ways you can tweak, or even circumvent NHibernate for those...
    Published 06-18-2009 10:03 AM by karl
  • NHibernate : Some Naked Thoughts

    Please, Just Remember One Thing Just for a few seconds forget everything you know about NHibernate. Good. Now, before I snap my fingers and everything comes flooding back, the only thing you need to know about NHibernate is that whenever you need to, you can easily circumvent it and do whatever is needed...
    Published 06-10-2009 9:07 PM by karl
  • Revisiting CodeBetter.Canvas

    A month ago I released CodeBetter.Canvas , a simple application with equally simple goals: Provide developers with a starting point for new ASP.NET MVC projects Provide developers with a learning tool for oft-talked about tools/patterns Instead of building a full-fledge application (like another blog...
    Published 05-25-2009 9:02 AM by karl
  • 2 years ago I gave up on Silverlight

    Almost two years ago, to the day, I completely gave up on Silverlight. How do I remember the day so clearly? Because every now and I again, I get an email notification that someone has replied to my following forum post: http://silverlight.net/forums/p/1334/216456.aspx . In it, I asked why the Shape...
    Published 05-23-2009 11:51 AM by karl
  • Making the untestable testable with Anonymous Methods and Dependency Injection

    Making the untestable testable with Anonymous Methods and Dependency Injection It can be frustrating to want to write unit tests, only to hit some code which is rather untestable. Take for example, the following code: public class MailSender { public void SendActivationMail(User user, string activationCode...
    Published 05-08-2009 10:42 AM by karl
  • Part of your job should be to learn

    Jan recently asked: "Something I don't see being addressed that often - When you say you read a lot, is that on your own time, or do you actually spend time at work reading? I think spending time at work reading & learning is justifiable, although not always easy." My answer is an absolute...
    Published 05-07-2009 8:11 AM by karl
  • 2009 - A Year of Learning (so far)

    I spend a lot of time learning. I read a lot, work on small projects that let me experiment, and blog (which is probably the best way to learn). I don't see how you can be effective or successful in the long run without a serious commitment to learning. Uncle Bob says it well: "I think that...
    Published 05-04-2009 10:57 AM by karl
  • 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...
    Published 04-28-2009 10:25 PM by karl
  • 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...
    Published 04-28-2009 8:08 PM by karl
  • 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...
    Published 04-27-2009 9:02 PM by karl
  • 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...
    Published 04-27-2009 8:27 PM by karl
  • 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...
    Published 04-26-2009 3:17 PM by karl
  • 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...
    Published 04-25-2009 11:02 AM by karl
  • 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...
    Published 04-24-2009 1:45 PM by karl
  • 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...
    Published 04-20-2009 9:24 AM by karl
1 2 3 4 5 Next > ... Last »