How I Got Started In Software Development
Unit Test Boundaries
One principle to follow when writing a unit test is that a unit test should ideally not cross boundaries.
Read MoreIronRuby With ASP.NET MVC Working Prototype
UPDATE 02.17.2009: I posted about a newer version of this prototype for ASP.NET MVC RC
Read MoreNotes on ASP.NET MVC CodePlex Preview 4
(If you want to skip all the blah blah blah, go straight to the release)
Read MoreMake Routing Ignore Requests For A File Extension
By default, ASP.NET Routing ignores requests for files that do not
exist on disk. I explained the reason for this in a previous post on
upcoming routing
changes.
User Input In Sheep’s Clothing
We all know that it is bad bad bad to trust user input. I don’t care if your users are all ascetic monks in a remote monastery, do not trust their input. However, user input often likes to put on sheep’s clothing and disguise itself as something else entirely, such as the case with ViewState.
Read MoreHttpModule For Timing Requests
Yesterday, I wrote a quick and dirty ASP.NET HttpModule
for displaying
the time that a request takes to process. Note that by turning on trace
output for a
page,
you can get timing information for that page. But as far as I
understand, and I need to double check this, this only applies to the
page lifecycle, which might not have all the information you want in the
context of ASP.NET MVC.
Keeping Blog Ads In Check
Oh Yes It’s Ladies Night
…and the feeling’s right.
Read MoreSecurity Tip: Blocking Access to ASP.NET MVC Views Using Alternative View Engines
When you create a new ASP.NET MVC project using our default templates,
one of the things you might notice is that there is a web.config
file
within the Views directory. This file is there specifically to block
direct access to a view.
VS2008 Web Server Here Shell Extension
UPDATE: Updated the registry settings per James Curran’s comment. Thanks James!
Read MoreVisual Studio Smart Tag Expansion Tip
I used to find the smart tag really annoying in Visual Studio because it is such a small target to hit with the mouse. Silly me, trying to expand a smart tag with a mouse.
Read MoreDelegating Decorators
When approaching an extensibility model, I often find cases in which I want to merely tweak the existing behavior of the default implementation and wish I didn’t have to create a whole new specific type to do so.
Read MoreEverything You Wanted To Know About MVC and MVP But Were Afraid To Ask
Or, as my recent inbox tells me, you’re not afraid to ask. ;)
Read MoreRAS Syndrome
Yesterday, I wrote a post that contained the phrase “BFFs Forever” in the title. Commenters were quick to point out the redundancy of “Forever” in the title.
Read MoreIf You’ve Ever Been A Consultant, You Understand This
Today’s Dilbert described one of the most challenging problems small consulting companies face. I’m sure Jon, Micah, and I remember experiencing this many times when trying to build and expand Veloc-IT (though Micah probably still gets the pleasure of dealing with this as he’s still chugging along).
Read MoreIronRuby and ASP.NET BFFs Forever
UPDATE: I just posted the working demo here.
Read MoreASP.NET MVC And Dynamic Data Learn To Play Well Together
My compadre Scott Hunter, another PM on the ASP.NET team, who happens to work on the Dynamic Data feature, recently put together an example of using ASP.NET MVC and Dynamic Data Web Forms together in the same application. Look for the link to MvcDynamicData.zip on this Code Gallery page.
Read MoreThe Design Is Never Right The First Time
The design is never right the first time. Nor is it usually right the second time. This is one of those key lessons you learn over time building real software, and is the source of one of the chief complaints leveled at the Waterfall methodology for building software, which puts heavy emphasis on getting the design right up front.
Read MoreUpdated Northwind Demo For ASP.NET MVC Beta
I updated the template to have the correct assembly references so it should work now out of the box. Sorry about that.
Read More