桌面到Web的转换 [英] Desktop To Web Conversion

查看:77
本文介绍了桌面到Web的转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!
我已经在Power Builder中开发了一个用于桌面的业务应用程序.现在我想在Web上运行它(想将其转换为Web应用程序).问题是天气有一些聪明的方法可以基于Web转换已经开发的Desktop应用程序应用程序还是我必须从头开始重新开发它.

解决方案

这在很大程度上取决于现有应用程序的设计.如果它具有与UI良好隔离的业务逻辑,通用代码部分和特定于应用程序的代码,则可以仅替换UI和UI绑定,否则它将是从头开始的实现,这不是一件坏事:经验,真正好的应用程序被开发了两次,第一个实现用作原型,可用于收集经验和学习应用程序领域.您的第二个实现可以完成,因此可能有双重UI:台式机和Web.

我必须说,将应用程序移植到Web比在相反的方向上困难得多,这是由于HTTP的限制(一种无状态协议)带来了严重的限制.最基本的关注点是状态管理,该状态管理用于保持字段之间的应用程序完整性.最有可能的是,您可能需要添加JavaScript编程(可能使用Ajax),而Ajax看起来完全不适合您的桌面原型.

要了解一个想法,请看一下:

例如,如果选择以ASP.NET开头,则状态管理问题将如下所示:
http://en.wikipedia.org/wiki/ASP.NET [ http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/z1hkazw7.aspx [ ^ ];

另请参见:
http://en.wikipedia.org/wiki/JavaScript [ http://en.wikipedia.org/wiki/Ajax_%28programming%29 [ ^ ].

—SA


据我所知,您需要重新开发该应用程序.可能您可以使用代码转换工具将代码从Power Builder转换为其他lang,从而减少开发时间,但是您需要重新设计屏幕并根据需要映射代码,而这是使用工具无法实现的.

Hello guys!
i have developed a business application in power builder for desktop use.Now i want to run it on the web (want to convert it a web app).The question is weather there are some smart ways to convert already developed Desktop app in web based app or i have to develop it from scratch again.

解决方案

It highly depends on the design of existing application. If it had business logic, universal technological parts of code and application-specific code well isolated from UI, you could replace just the UI and the UI binding, otherwise it would be implementation from scratch, which is not such a bad thing: from my experience, really good applications were developed twice, and the first implementation served as a prototype useful for collecting experience and learning application field. Your second implementation can be done so it could have dual UI possible: both desktop and the Web.

I must say that porting the application to Web is much more difficult than in the opposite direction, due to really draconian limitation stemmed from limitations of HTTP, which is a stateless protocol. On of the fundamental concerns will be the state management used to preserve integrity of the application between field. Most likely, you will need to add JavaScript programming, likely with the use of Ajax, which looks totally foreign to your desktop prototype.

To get an idea, take a look:

If you choose to start with ASP.NET, for example, the problem of state management will look like this:
http://en.wikipedia.org/wiki/ASP.NET[^],
http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx[^],
http://msdn.microsoft.com/en-us/library/z1hkazw7.aspx[^];

See also:
http://en.wikipedia.org/wiki/JavaScript[^],
http://en.wikipedia.org/wiki/Ajax_%28programming%29[^].

—SA


To the best of my knowledge, you need to re-develop the application. Probably you can use code conversion tools to translate the code from power builder to other lang thereby reducing the time to develop, but you need to re-design the screens and map the code as required and this cannot be achieved using tools.


这篇关于桌面到Web的转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆