Search Results for "James Curran"

Analysis of a Winner!

The Tallan CodeOff is an annual (*) event here at Tallan to challenge the development staff.  At the start of the contest, a simple programming task is emailed out to the participants, who then have an hour to complete it.  In the past, the winner was the first person to submit a correct entry.  This year, however, the contestants could take the full hour, and the winner would be whoever’s ran the fastest.
The task for this year’s contest was to take a directory full of HTML files, and strip out all unnecessary whitespace from them.  Per the HTML standard, on runs of contiguous spaces, only the first one is significant – the rest are ignored by the browser, so by removing those spaces beforehand saves disk space and shortens download time without having any effect on the appearance of the…

JavascriptHelper–Managing JS files for ASP.NET MVC

After working several years with the Castle Monorail MVC framework, I decided to try ASP.NET MVC to see if it had caught up to Monorail. The transition seemed to go rather smoothly, but one area where I was surprised to find how clumsily it was handled, was the management of JavaScript files. Basically, if some part of a page, say a helper or partial page, needed a particular JS file, you had one of two choices.
The first option is to have the part itself would write the script tag. This allows the part to operate as a “black box” – just drop it in and it works – But it means that there will be script tags loading file scattered throughout the page, and that the part needs to know your folder structure where you keep your JavaScript files. And…

\\\