Not Invented Here Mechanic

Here's a little thought experiment: What if industries other than software development suffered from 'Not Invented Here' as much as we do*? * Note how "In Computing" is the only industry-specific section of the article. Oh sure, you could replace this blown tire with one from a tire store, made by a company that has been refining its designs for decades. But I'm pretty sure the one I made on the first try out of random junk I found in my yard wtihout so much as flipping through a few issues of...

Peach Driven Development

There's a virtually infinite number of ways to structure projects when working in an IDE like Visual Studio. Lately I've been thinking a lot about how I structure my solutions, and I'd like to establish a convention that I can use when beginning a new project that helps do the following: Maintain separation of concerns between the various layers of the application (e.g. user interface, database, etc) Does not introduce too much complexity (i.e. no more layers than absolutely necessary to...

Client-side File Upload Size Validation in ASP.NET MVC

Here's a little ASP.NET MVC validation attribute you might find useful: file size validation, complete with client-side validation using the HTML5 File API. We're using bytes for the file size, just for simplicity's sake. First, the server-side validation attribute: using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Web; using System.Web.Mvc; namespace MyProject.Web { [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property...