(no title)

"We try to solve the problem by rushing through the design process so that enough time is left at the end of the project to uncover the errors that were made because we rushed through the design process." by Glenford J. Myers

"Code Complete: A Practical Handbook of Software Construction" by Steve C McConnell, ISBN: 1556154844, page: 143

Read More »

ASP.NET MVC RC Compiler Post-Build Step

I was reading through the ASP.NET MVC RC Release Notes and saw a section that could be easy to skip over, but will help me out considerably on my MVC project.

Previously, I've been burned by my Views having compile time errors, but not catching them until runtime. You can now add a new tag to your MVC project file to detect these errors at compile time!

The following is a snippet from the ASP.NET MVC RC Release Notes document...

ASP.NET Compiler Post-Build Step

Currently, errors within a view file are not detected until run time. To let you detect these errors at compile time, ASP.NET MVC projects now include an MvcBuildViews property, which is disabled by default. To enable this property, open the project file and set the MvcBuildViews property to true, as shown in the following example:



Note: Enabling this feature adds some overhead to the build time.

You can update projects that were created with previous releases of MVC to include build-time validation of views by performing the following steps:

  1. Open the project file in a text editor.
  2. Add the following element under the top-most element:

  3. At the end of the project file, uncomment the element and modify it to match the following example:


I just started upgrading my MVC project to the RC and having this Post-Build Step turned on really helped during the upgrade process.

Read More »

(no title)

“Considering the current sad state of our computer programs, software development is clearly still a black art, and cannot yet be called an engineering discipline.” –Bill Clinton

Read More »

Watercolor Date Night Turned jQuery

My wife and I went on a long overdue date night. We first went out to eat and then came back home after the kids were in bed to do some relaxing watercolor painting.

We had been brainstorming for quite some time about the subject of our painting... and then I came upon the above "jQuery Rocks" idea.

Although I enjoyed adding some tech to my painting, I am thinking next time we do this activity, I will choose to paint a landscape or something less geeky :)

A friend of mine suggested that I put it up on eBay... I wonder if anyone would even bid on it!?!

Read More »

Mini jQuery Lab

Yesterday, I ran across an interesting blog entry written by Jeffery. The title and images caught my eye, but I had a hard time understanding the Chinese. The article talked about a "Mini jQuery Lab" and had pictures showing a cool playground webpage mixing CSS, HTML, and jQuery!

I sent the URL through Google Translate to try to find where I could download the tool, but I still had difficulty figuring out the translation. Finally, I left a comment and the author walked me through what to do.

Basically, I just download the jQueryDemo5.zip from the bottom of a MSDN article. Inside the zip file was the Mini jQuery Lab. I extracted just the Mini jQuery Lab part of the zip, and hosted it on my website for your download.

So, I thought I'd play around with the tool for a little while. I ended up making a real simple jQuery AJAX call to retrieve my latest tweets from Twitter and display them inside of an ordered list.

At any time you can click the 'View HTML Source' link at the top of the webpage to view a complete page with all your CSS, HTML, and jQuery showing inside a SyntaxHighlighter pre tag.

Here is the code if you are interested in what I was playing around with...

List of My Tweets

I hope you find this a useful tool. I can see it very handy when playing around with small new tricks or showing some things off during a presentation.

Read More »