Blogs

Gary's Blog

LightSwitch Illuminates Application Development

     

Late last month Microsoft release a beta version of LightSwitch, the latest member of the Visual Studio 2010 family.

LightSwitch, The Developer Story 
With LightSwitch you can build custom applications and get the UI scaffolded for you by using pre-configured screen templates that give your application a familiar look and feel. LightSwitch also provides prewritten code and other reusable components to handle routine application tasks, you know, the day to day stuff that can be so tedious for developers. Of course, it’s not all “plug and play” programming, if you need to write custom code, you can use Visual Basic .NET or C#. Applications written in LightSwitch can deploy to the desktop or browser. In the final version of LightSwitch, you’ll be able to deploy your applications to the cloud too.

LightSwitch And Data
with Lightswitch you can attach your application to existing data sources, including MS Sql Server, Azure SQL, Sharepoint and other third-party data sources. Also, after release, LightSwitch will support Access. Creating data is done via a grid view:

LightSwitch Create Table Dialog

And you can connect to existing data by using the standard data wizard:

LightSwitch Attach Data Source Wizard

Reporting, LightSwitch’s Missing Functionality
As of the moment, and probably at release time too, there is no built in reporting functionality for LightSwitch, instead, data can be exported to Excel for analysis or to Word for reporting.

LightSwitch and XAF Battle Tyranny!
Although, at first glance, it may appear that LightSwitch competes with our own XAF product, on closer examination you will see that they are really allies in the same battle. What battle is that you ask? It’s the battle that all corporate developers must fight at least once in their lives, the battle against the business’ love of pushing multi-user, departmental scale applications into desktop tools such as Access and Excel. Before we look at how LightSwitch helps XAF in this battle, let us pause for a moment and examine how it is that we find ourselves fighting this same battle over and over.

That’s Another Fine (Corporate) Mess You’ve Gotten Me Into!
There are many things that can cause a department to start to rely on desktop tools to perform tasks like this for which they were never designed, some are deliberate, and others are accidental. An example of an accidental reliance can be seen in what I call the “Honey I blew up the app!” effect. This is where one guy thinks it would be really useful to have a database of Doodahs, so he creates one for himself and hosts it on his desktop. This is what Access, for example, is designed for and so he’s a happy bunny at this stage. Soon other people in the office get to hear about the Doodah database and they think its a great idea and they say, “hey how about sharing that buddy?”, and being a good pal he does, he puts the Access file on some central share somewhere so his friends can use it too. Time passes and word of the Great Doodah Database spreads far throughout the company and before you know where you are, you have a mission critical piece of functionality contained within, what is essentially, a desktop application.

An example of a deliberate reliance on these tools is what I call the “Three Wise Monkeys” effect. This happens when management in a company – for example a bus company – decide that IT is not their core activity or skill set and they no longer wish to have the expertise in house. They outsource their IT to a specialist company who, rightly, put in place processes for having software written, deployed and maintained. This is all very sensible, however, at the “coal face” it means that before, when a line manager wanted a simple application written, he’d walk down the hall and speak to “Joe” about it, now he has to fill in 3 copies of 4 forms and send them to 5 different people and then wait 6 months for his software. The result is that he can’t get anything done. Never fear though because there is a “get out of jail free” card. Although the company has outsourced all the application development and their systems are now managed for them, the outsourcing company decreed that Microsoft Office, and other applications of a desktop nature, were deemed to be “Products of Personal Effectiveness” and so are not covered by the agreement. This means that the outsourcing company wont give you support because you don’t know how to remove the bold emphasise on your latest and greatest report, for instance. Of course, it also means that our hero can once again walk down the hall and speak to “Joe”, only this time he gets him to build an Access database.

LightSwitch And XAF Ride to the Rescue!
However it happens we, as developers, know that this is a common story with a predictably bad ending: “Hey Joe, you know that Access database that we use to control our country’s nuclear deterrent, you did remember to back it up before you replaced your desktop machine, right?!”. It’s clear that developers need tools which are as easy to use as Access, Excel and their like, but actually allow them to develop robust and scalable applications. XAF and LightSwitch compliment each other in this exact space. Where LightSwitch offers the developer an easy way to create or connect to data, XAF offers the flexibility of reuse once the object model is created. Where XAF offers support for the traditional desktop and ASP.Net market, LightSwitch supports the emerging Silverlight technology. Where LightSwitch offers the ease of exporting data to Microsoft Office for reporting and analysis purposes, XAF offers a full and rich reporting experience through XtraReports. Clearly these two tools offer the developer the best hope in the fight against corporate take over by marauding desktop applications. Wherever you are fighting this battle, you’ll find us here to help. Smile

Published Sep 01 2010, 11:42 PM by Gary Short (DevExpress)
Technorati tags: LightSwitch, XAF, SilverlightZone
Bookmark and Share

Comments

 

daniel weisel said:

I still think that LightSwitch is a competitor to XAF; allot of the things that LightSwitch can do - XAF can do also. If your saying that LightSwitch can connect to different data-sources - with Romans' DC implementation into XAf this will also be possible. And "talking" to Excel or Access can also be done in XAF (through the other DX controls, whcih you get as part of XAF).

September 2, 2010 9:42 AM
 

Boris Bosnjak said:

I'm finding LightSwitch pretty intuitive to use.  I've been able to do all kinds of real world customizations without the use of a knowledgebase or tech support system.  With XAF I could never accomplish the simplest customization without great effort, if at all.  XAF is perhaps "too" powerful for me (certainly too complicated for my needs).

However, I'm desperate to see DevExpress provide versions of all their components for use in LightSwitch apps, because here DevExpress wins hands down :)  I'll be in seventh heaven!

September 2, 2010 12:07 PM
 

Alain Bismark said:

I think the same, LS is a competitor of XAF, is a creature that will grow fast if the community put pressure over M$.

XAF need to evolve to support (and to put distance between LS):

- real n tier development (mandatory!!!)

- support of WPF & LightSwitch (nice to have)

if not, XAF will continue supporting CRUD basic application (like LS) and never will support real enterprise applications.

September 2, 2010 12:11 PM
 

Gary Short (DevExpress) said:

In the strictest terms LightSwitch does compete with XAF, however, it's competition in the same way that XPO competes with EF, MS's entry into the market did more good than harm, it opened people's eyes to the benefits of ORM tools. At the end of the day all boats are lifted by a rising tide. The same will happen in this space too, I am sure of it.

September 2, 2010 12:36 PM
 

Kendall Miller said:

Developers often have a love/hate relationship with Microsoft:  If they don't have a product in a space then many devs don't believe it's that important.  When Microsoft jumps into a space sometimes it kills a few players in the short term but often it lifts up the existing (quality) players:  Provided their pricing is reasonable people feel that there must be something to it because Microsoft has a product in the space.

Longer term it can be hard to keep differentiating from the "free" offering from Microsoft, but many companies have done that successfully.  Typically this is because the MS offering has a specific target market they're trying to shore up, and it's often focused either on the enterprise or some other key audience.  If you then have a product that fits a similar need but isn't targeted at exactly the same audience it's all golden.

Consider players like SourceGear that still make a good living from Vault when TFS2010 offers a free (if you're in MSDN) alternative that lets you store your code in SQL Server.  Likewise, SSRS is free but that seemed to only buoy the players in reporting systems.

September 2, 2010 2:50 PM
 

richard morris said:

IMO

LightSwitch : Access :: VB.NET : VB6

There will still be a brick wall, but it's not as high.

September 3, 2010 12:32 AM
 

Trevor Westerdahl said:

Gary, did you know that MS Access has a "shell" function? You know... where an exe can be called from a button in Access?

So what you might say. However, I find MS Access is the KING of quick solutions in a business that does just what you say; it grows into a spiderweb of complex and difficult to manage problems.

So, why this shell function? Well, many people try to replicate everything an internal MS App accomplishes which could take months or years to dissect.

With the shell function, you can write a replacement for each "view" so-to-speak and have users click their familiar button in access where a nice VS2010, DevExpress-based app loads a form to replace that one piece in MS Access.

Before you know it, form-by-form, and report-by-report, MS Access is old news and shelved and the full-blown "real-app" is in-place.

Just-a-thought to ponder... a snippet to help maybe someone migrate out of the problematic MS Access.

BTW: I think there are so many missing pieces with LightSwitch that its not even close to achieving what MS Access achieves. Its another incarnation of MVC (only it has less of a total package to this this point).

It honestly gets tiring to see demos of entering data with little to know validation, no complex scenarios, and no real life tools needed : reporting, bar coding, interop with other tools, OCR, printing, etc, etc.

Maybe in two years (if it survives), it might be worth using in limited scenarios. I would never invest in it.

September 3, 2010 4:42 AM
 

Marcelo AR said:

LightSwitch is just what I allways wanted. I tried to use it with AgDataGrid but it did not work. Any of you having any success?

I would love to hear more from Devexpress regarding their LightSwitch strategy.

September 3, 2010 7:03 PM
 

Ralph Rutschmann said:

'...XAF offers a full and rich reporting experience through XtraReports'

Really? Must have missed something...

Are you kidding? :-(

I love XAF, but surely not because of the xafReports.

It would be nice to have XtraReports in XAF, but we have not.

Maybe LightSwitch will help to get what we need in XAF! :-)

Best regards, Ralph

September 5, 2010 3:38 AM
 

Michael Thuma said:

It looks little better than Oracle Apps Builder ... I think this is more an answer to this than to XAF. Acess 2007 is very much the same from the visual styple, agree with Richard Morris. XAF is something different:) for sure.

Poor those soles who have to work with it on a MS driven CIOs command ... it reminds me little Access + ODBC + Oracle ... buahhhh.

September 7, 2010 12:59 PM
 

Robert Fuchs said:

> Ralph Rutschmann said:

> "... It would be nice to have XtraReports in XAF, but we have not."

+1

LOL, Ralph, you nailed it!

September 9, 2010 11:41 AM
 

Robert Fuchs said:

> Trevor Westerdahl  said:

> "Maybe in two years (if it survives), it might be worth using in limited scenarios. I would never invest in it."

+1

As much as I love the .NET framework, Windows 7, Office etc., but I do not trust MS at all with this kind of software.

Risk is high that they will let it die - sooner or later.

JM2€C.

September 9, 2010 11:46 AM
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.