ZDNet UK


Skip to Main Content

ZDNet.co.uk - Winner of Best Business Website 2007
  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Jobs
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


Office applications Toolkit

Is your application .Net ready?

F. Godfrey Baker

Published: 16 Jan 2003 10:19 GMT

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

Redesigned from the bottom up, .Net has made marked progress in areas such as XML integration, error handling, component processing, and reusable frameworks. The promise for Web development is clear: faster development, less custom coding, and increased stability. Once you've decided to migrate current applications to the new platform, you'll need to determine whether your application is .Net ready. This article will help you figure out your .Net capability.

Appropriate languages
The .Net framework relies on a common language runtime (CLR) that promises compatibility with multiple languages. In theory, it would be possible to port a Java-based application to .Net without rewriting the application code in C#, C++, or Visual Basic (VB) by using Java COM or Web services. In practice, however, implementing such a heterogeneous application is usually a complex undertaking. Yet changing languages during the migration will also impact the timeline. A language port will almost undoubtedly require architectural changes. Application logic, which is currently coded in VB, C#, or C++, offers the simplest migration to .Net. While not a simple recompile, rewriting to the .Net framework libraries from VB, C#, or C++ gives the best chance of success over a Java COM or other mixed language implementation.

Application tier supported by COM objects
If you have a three-tiered system, your application most likely relies on COM objects to encapsulate application logic. COM objects are supported under the .Net framework. However, due to performance degradation with COM object interoperability under .Net, you might want to consider migrating any COM objects to .Net framework-managed objects. Note that performance enhancements gained with .Net's early binding protocols will increase performance for .Net/COM over your current ASP/COM implementation.

At the very least, with a current COM implementation you have the choice of whether to migrate to managed objects immediately, or to leave the COM layer in place for the intermediate term.

Stored procedures in place
Strong partitioning at the data tier typically relies on encapsulating data manipulation logic within stored procedures. Microsoft has identified using stored procedures as a best practice and relies on their use to optimise database performance. Additionally, stored procedures enhance maintainability by enabling SQL and table changes to be made without impacting application or presentation code.

Migrating to .Net will not require any modifications to existing stored procedures. The application routines to execute and manipulate retrieved data from stored procedures will require a migration to .Net framework ADO.Net library methods or the use of COM objects. If you are already utilising COM objects to encapsulate stored procedure calls, essentially no migration effort beyond COM integration will be required.

Clearly separated HTML and ASP
One common shortcut to identify in your application is the use of embedded HTML within ASP routines to render an interface element. This practice inevitably causes downstream maintenance problems because of the difficulty in understanding the flow of the embedded HTML and the structure of the rendered code. .Net enforces good programming practice by disallowing these HTML-rendering routines. Instead, custom Web controls are used to encapsulate complex HTML, exposing only the properties and events to the application.

Next

Previous

1 2


  • Email
  • Trackback
  • Clip Link
  • Print friendlyPrint with Konica

Did you find this article useful?
43 out of 77 people found this useful


Full Talkback thread

0 comments

Company/Topic Alerts

Create a new alert from the list below:











Featured Talkback

In association with Intel
Why do so many (virtually all) software packages think that they are so important that they have to be started automatically every time the computer boots? What is the largest number of "speed access", "update check", "camera download" and whatever other background programs you have ever seen running? Of those, how many did you really need?

By: J.A. Watson

Read full story:
Annoying software: a rogues' gallery

Discussions

razer razer

There is difference

Thursday 16 October 2008, 1:40 AM

5 comments
1000215420 1000215420

Everything can be counterfeited

Wednesday 15 October 2008, 10:55 PM

3 comments
1000215420 1000215420

Not live but right to reside

Wednesday 15 October 2008, 10:48 PM

5 comments

Vista Upgrade Blog

Vista - Still Running and Stable After...

Six weeks ago, when I wrote Renewed Adventures with Vista, I wondered if Microsoft had finally managed to fix it sufficiently that I wouldn't be forced to give up on it after a few... More

Post a comment

Official MS Windows 7 Bloggers

Check this out: http://blogs.msdn.com/e7...spx Its an official blog "Engineering Windows 7" Nothing. That's what is revealed. Until there is real... More

5 comments

Microsoft's Mojave just a desert vista

It didn't seem fair to wade into Microsoft's “Mojave Experiment” advert quite so soon after the flat earth incident. But The Economist has no such qualms: in this week's issue, it wonders... More

6 comments