Archive

Author Archive

Web Deployment Cage Fight – 2002 versus 2011

June 16th, 2011 No comments

When I first started doing web development with Visual Studio 2005, it was pretty painful work. Not only was the development itself difficult in many ways (if I say “typed DataSet” and “bloodthirsty bedbugs”, which makes you cringe more?) but the deployment of sites was often a long, tedious manual process for a site of any size. I distinctly remember having to log into my hosting provider, upload a zip file or collection of files, manually unzip or move them around and then hope that everything and the stars were lined up properly. Microsoft tried to make things easier with the Publish technology from Visual Studio but that never worked particularly seamlessly, at least not in my limited experience. On top of all that, it required considerable discipline (and a kickass source control which I’m not sure existed) if you wanted to deploy certain changes but not others.

Take a quantum leap forward into 2011. Over the last 3.5 days, I built a website to serve as my central home on the web, a place where I can aggregate my work, writing and other activities easily. I built the site in Rails, used git for source control and when it came time to deploy the site, Heroku for the hosting. To deploy my site, I had to do to things:

heroku create

and

git push heroku master

When that was done, I had a live, working test site on the internet that I could test in multiple browsers, get feedback on, etc. When I was ready to redirect my current home on the web to the new one, all I had to do was add a custom domain and Zerigo DNS add-on at Heroku, update my nameservers and presto chango, the production site was up and running.

On top of that, because branches are so painless and easy in git, I can create a new branch, work on it, merge it with the master and update the site all from the command line of my laptop. The idea of having to log into a hosting provider to upload files suddenly feels like waterboarding. If you have a significant test suite, it’s a matter of having your tests pass and then just updating your production site. Obviously, as a site grows, it won’t be quite that easy but it’s not going to get that much harder either.

The smart folks at Heroku have removed some of the major obstacles to web development so we can focus more on writing the code now and less on the administrative agony. On top of all that, for small sites like mine, the cost is negligible or non-existent. Lots of things aren’t better in 2011 than they were in 2002 (the world’s going to end next year) but web deployment, if you choose the right tools, is infinitely better in a way that’s almost inexpressible.

Categories: Programming Tags: , ,

MSBuild Extension Pack Tip #1

September 21st, 2009 No comments

When using the MSBuildHelper in the MSBuild Extension Pack to access particular items in a collection, the Position is zero based just like arrays are. I have no idea if this is intuitive or counter-intuitive but it’s definitely not VB6tuitive.

Categories: Programming Tags:

MSBuild and the CompactFramework

September 21st, 2009 No comments

If you are building Compact Framework projects using MSBuild or Team Server Build and you seem to be having exceptionally long build times, you can shorten those dramatically by turning off Platform Verification. We had a build that was running 15-20 minutes and it has been cut to 5 now.

This is your Tip of the Whenever I Get Around To It for this time period. Look for another tip whenever I get around to it.

Categories: Programming Tags:

Destroying Motivation

June 4th, 2009 No comments

One meeting at a time. It’s truly amazing how big companies just don’t seem to comprehend what makes developers happy. Instead, they tend to go out of their way to make them unhappy. My company is no different. This list is a pretty good start on ways to make your programmers unhappy.

Around here, people get promoted to their highest level of incompetence and the really good developers get to do things like develop process (mmm process, it tastes good with Ranch) for the rest of the department or evaluate tools for the rest of the department. None of which sounds particularly interesting or useful to my long-term career goals.

I fight through the overhead and some days, I really get good stuff done. Most of the time though, I develop my exceptional talent at day-dreaming while looking interested. At least, I think I look interested.

UPDATE: This post was written two years ago. I’m doing some cleanup on categorization so if it show up in your newsreader, that’s why.

Categories: Programming Tags: