Last night I posted a screencast of me trying to build a Domino CRUD website in 5 minutes. I failed. This morning I tried again. I failed again.
Here's what I'm trying to achieve in the 5 minutes:
- Create a new site from scratch
- Add a form to let me add, view, edit and delete Contact records
- Add a view to let me see a list of all the Contact records
- Add a new Contact record for myself
- Edit that new contact record and change the phone number
- Delete the record
Easily done in 5 minutes, right? Seems not. Here's my second attempt:
It's the fiddly bits like adding edit/delete links and adding all the columns to the view that take up most of the time.
Maybe it can be done quicker? If you think so then please have a stab and records your efforts using Screenr.
I'd also be very interested to see somebody do it using XPages too!! Not only because I'm interested to see how, but also to see whether it's any faster than Domino classic.
A Quicker Way
Here's me doing the same things in ASP.NET MVC 3 using Visual Studio and getting it all done in 2 minutes 30 seconds.
All I needed to do was define the "fields" in my Model class and let MvcScaffolding do the rest. Without scaffolding then it would probably take the best part of a morning to hand-write all the code for this! The scaffolding code even created the backend database and table for me!
You could argue that using a scaffolder is cheating, but the fact is, I got it done in half the time. If there were a way to scaffold the tedious parts of making this in Domino then I'd have used that too.
And My Point Is?
There's no real point to this. It's just a bit of fun really. Although I did want to introduce you to the concept of scaffolding and, in particular, its use with ASP.NET MVC. I already thought MVC "rocked" but now I can scaffold my apps it's just blown me away.
More generally my point is: don't go thinking that Domino is the only RAD tool out there and that other platforms take forever.
At the end of the day though this is all pointless. No real world solution is ever built in 5 minutes and nor should it be.