|
Red Squirrel Reflections
Dave Hoover explores the psychology of software development
|
|
Mon, 29 Aug 2005An Apprenticeship Pattern on StickyMinds I adapted one of the apprenticeship patterns to use in this week's StickyMinds column. It's called Experts, Craftsmen, and Ignorance.[/craftsmanship] permanent link One of my favorite personal code katas is coding the Monty Hall dilemma. In honor of this excellent mind-bender, I decided to use it as the subject of my introduction to Ajax. I'm sure I'm the 30,000th programmer to blog on Ajax, but I can't resist. I started my programming career as a Perl CGI developer and coming out of the Perl community, I learned to disdain JavaScript and any code that lived on the client-side. (Probably similar to the disdain that most non-Perl programmers have for Perl code.) Fast-forward to 2005 and I'm willingly diving into JavaScript in order to experience the wonders of Ajax. As I whipped up a combination of HTML, JavaScript and Perl, I experienced a paradigm shift. This stuff opens up some incredible opportunities! At first glance, I'm feeling like Ajax is going to change just about everything about web development as I knew it. I grabbed prototype and fired off some asynchronous JavaScript calls (using scriptaculous for some nice Effects) to a tiny little Perl CGI that plays the role of Monty in the game. It was a lot of fun. So without further ado, here's my brief tribute to Monty Hall. If anyone is interested having me write up a walkthrough of the client-side and/or server-side code, let me know. |