I’ve just read an interesting [article on Catalyst](http://www.perl.com/pub/a/2005/06/02/catalyst.html), an [MVC](http://en.wikipedia.org/wiki/MVC) web development framework for Perl. While I’m all in favour of using frameworks to write less (repetative) code, I was slightly dismayed to see their example make fairly unnecessary use of [Ajax](http://www.adaptivepath.com/publications/essays/archives/000385.php), which is what the cool kids are calling JavaScript + [XMLHTTPRequest](http://en.wikipedia.org/wiki/XMLHttpRequest) this year.
Having suffered for many years on a project that used a precursor to this technology, I fear that lots of impressionable web developers are going to make the same mistakes we did as they jump aboard the next technology fad. I’m not against the use of this technology, but it exposes a slippery slope where too much code is pushed from the server onto the client. It’s too easy to end up with application and (worse still) business logic executing inside a web browser, making for a performance and maintenance nightmare. You don’t think that will happen? Would Sir care to make a small wager?
Tags: programming