从Coldfusion到Silverlight

I built a comprehensive site with coldfusion that covers the following areas: Handles multiple databases, present data on maps, control different login privileges, accepts and track users’ requests, send automatic emails alerts. What is the easiest and fastest way to convert the site to Silverlight, keeping in mind that most of my background is in coldfusion? How long would it take to get familiar with the language and convert all the pages. Also, I’m hosting the current application on godady, would I be able to host how the new application there?

 

First off, not everything you mention makes sense to convert ot Silverlight. Silverlihgt is a client-side only technology so things like database access, user tracking and sending email are beyond the capabilities of Silverlight, and always will be (probably). What might make sense though is to split your application into two (or more) pieces with Silverlight handling all user interaction and some other technology, even cold fusion, handling all of the back-end processes.

 

For instance, database access. One possible solution would be for you to use your existing cold fusion database access code but instead of generating a web page with the results of your db calls, expose them as a web service that is used by the Silverlight application. Then the Silverlight app would call that service with whatever parameters are needed and when it returns would display the data to the user in a friendly way.

 

As to the learning curve question, most developers pick up the basics of Silverlight pretty quickly since c# is a pretty robust language that has been around for a while now. There is also a pretty active developer community through this forum and a number of blogs to explain things in detail.

 

GoDaddy can host Silverlight apps just fine, the hosting question will just be in relation to whatever server-side technology to go with and it sounds like cold-fusion is fine.

 

Did this help you at all?

 

From a previous user of Cold Fusion, I’d say it’s kinda different. Be prepared to learn a lot of new principles and “modern” programming concepts. Cold Fusion, from what I remember was pretty much made for early interactive web pages. It’s barely a programming language relative to “real” language. I’m sure some of your functions are server side and can be implemented in .NET in IIS as well if you so need to. Maybe you can save most of it even and make some interface to it that will work. But I’d have to say the Cold Fusion to Silverlight (and .NET) is a big jump in learning curve.  I'd say that the easiest way is to build it from ground up by learning what SL does.  I'm not sure you can find that much "direct mapping" of code that you can easily translate from one language to another.

 

However, I used it quite a while ago and it was mostly geared toward accessing databases.  I see that they have updated it a bit so maybe it's different now. 

你可能感兴趣的:(silverlight)