Before getting down to technical detail I wanted to mention Microsoft sessions in general. As I expected from Microsoft, the presentation and the demoes were slick and polished, but I continually can't help but feel I'm being presented to by a couple of marketing guys who have been schooled by techies. I far more enjoy being presented to by an academic than being sold to by a salesman. Maybe its just me?
OK, so on to LightSwitch. The main questions I had was: What is it? and What problem is it trying to solve?
As I say I was intrigued by LightSwitch as I had read some material explaining that LightSwitch was the solution for straightforward CRUD applications (or the CRUD elements of applications at least), that LightSwitch would auto-generate CRUD code. I have to admit this initially had me excited .
You see, most of the bespoke applications I'm involved in tend to consist of 2 functional aspects:
- the implementation of the specific business domain (i.e. the part of the application specific to support the business process)
- and the maintenance of the supporting data for that business process - the CRUD element.
Now here was Microsoft apparently releasing a tool to automate this for me. Sounds good. However, I still had reservations, namely
- Is it easy to integrate the specific, interesting (and sometimes complex) business domain code of your application with the CRUD code auto-generated by LightSwitch?
- Integrating and re-using objects is one thing, but is it possible that you can scale such drag & drop solutions? And what type of architecture am I going to end up with?
Moving on to the non-functional questions over flexibility and scalability, again Microsoft claim that LightSwitch allows you to deploy your end solution as a Silverlight app, which definitley gives it reasonable flexibility over the target platform. The demo also covers how to scale this from being a simple single user executable during development to being a multi-user deployed web app. Again, the demo makes it look so simple, but I think that is mostly down to the simple demo. In reality, most applications tend to be more complex than that.
All of this aside, the one question that remains unanswered is: who exactly is this product aimed at? Who is going to use it?
The LightSwitch demo host presented a strong case for allowing business users to build their own apps organically, and only when the app graduates from being a single user or department wide app to an enterprise app should us developers get involved. Traditionally, this has been done using Microsoft Access in its various incarnations, and I've experienced such situations, and I can understand the argument that says the best applications "grow" from this type of root.
So, is this an Access replacement? Well no, because its a Visual Studio component and business users don't usually have Visual Studio on their standard desktop, but they do have Office, which is why Access had/has such a high adoption rate.
So, then its a developer tool. And here is where that nervous feeling comes from....are Microsoft suggesting .NET developers hand over control of the design and architecture of their enterprise scale software to a code generator? (Not only that, a code generator that seems to focus on state and not necessarily behaviour at that?!) Just when we are finally making some headway with .NET being taken as a serious development platform, some innovation, some serious thoughtleaders using the .NET platform and out there being heard, and Microsoft comes back advertising a new way of pointing and clicking your way through your professional career. I wonder if its too late for me to start learning something like Ruby On Rails?
(thanks to restoreus .org for use of the image)