为我的项目建议语言
我正在开展一个项目,我们必须决定使用一种语言。
要求如下:
- 客户端应同时作为 Web 运行 基于浏览器的独立桌面 应用程序。两者都有相同的 特征。
- Gui 应该具有丰富的图形,但仍然是轻量级的。它不应该使用太多内存来渲染视图。客户端机器有内存限制。
- 服务器将位于 unix/linux 机器上。服务器端代码可用 Java 编写。
- 客户端将在 Windows 机器上运行。
我们有基于 Swing 的客户端。它不丰富,并且消耗大量内存。内存有限制。是否有可能我们不需要从基于 Swing 的应用程序转移?它也可以在图形方面得到改进。
我们正在考虑将客户端代码转移到其他可以与 java 中的服务器端代码一起使用的语言。
如果我的问题仍然不清楚,那么我会尝试更新它。 请建议。
谢谢,
阿布舍克·贾恩
I am working on a project for which we have to decide for a language to work on.
Requirements are as follows:
- Client should work both as web
browser based and standalone desktop
application.Both will have same
feature. - Gui should be rich in graphics but still light weighted.It should not use much memory for rendering views. Client machine has limitation of memory.
- Server would be on unix/linux boxes.Server side code is available in Java.
- Client will run on windows machine.
We have swing based client with us.It is not rich and it consumes much memory.There is limitation of memory.Is it possible that we need not to move from swing based application? It can be improved in graphics also.
We are thinking for moving our client code to some other language which can be used with server side code in java.
If still my question is not clear then I will try to update it.
Please suggest.
Thanks,
Abhishek Jain
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
无可救药的大问题。使用您所知道的可能是最好的选择。
也就是说,我要做的是使用 Mono (我以前做过)。
我将通过 Linux 上的 Apache 通过 mod_mono 使用 ASP.NET MVC 作为服务器端 Web 代码,并且 JQuery 在客户端上提供性吸引力。我会确保我使用了不引人注目的 JavaScript 技术,这样即使 JavaScript 被使用,它也能很好地工作。无法使用。
使用 Mono (.NET) 的优点是您可以同时编写 Web 内容和客户端代码使用相同的语言(我会使用 C#)并使用相同的后端和 DLL。对于客户端 GUI,如果仅是 Windows,或者 Windows 窗体或 GTK#<,则可以使用 WPF /a> 如果你想要跨平台。我可能会使用 GTK#,因为这可以让我选择在 Linux 和 Mac 上运行桌面客户端。
ASP.NET MVC 是开源的,并且在 Mono 中开箱即用(实际的 Microsoft 代码)。
如果您想构建智能手机前端,可以使用 MonoTouch 或 MonoDroid 并重用您的后端基础设施。
对于工具,如果您在 Windows 上进行开发,则可以使用 VisualStudio 及其朋友;如果您在 Linux 上编写,则可以使用 MonoDevelop 作为 IDE。 MonoDevelop 还允许您使用 Subversion 或 Git 进行源代码控制,使用 NUnit 进行单元测试。
要与桌面客户端进行通信,请查看 REST 作为提供 API 的替代方案构建网站时到桌面客户端。
当然,还有许多其他选项可供选择。
编辑:在我知道服务器已经编写好并且 Java 已被选为语言之前,我就编写了所有这些内容。
Hopelessly large question. Using what you know may be the best option.
That said, what I would do is use Mono (I have done it before).
I would use ASP.NET MVC through mod_mono through Apache on Linux for the server side web code and JQuery on the client to provide the sex appeal. I would make sure that I used unobtrusive JavaScript techniques so that it would work well even when JavaScript was not available.
The advantage of using Mono (.NET) is that that you could code both the web stuff and the client stuff in the same language (I would use C#) and use the same back-end and DLLs fro both. For the client GUI you could use WPF if it was going to be windows only or either Windows Forms or GTK# if you want cross-platform. I would probably use GTK# as that would give me the option of running the desktop client on Linux and Mac as well.
ASP.NET MVC is open source and ships (the actual Microsoft code) out of the box in Mono.
If you want to build a smart-phone front-end you could use MonoTouch or MonoDroid and reuse your back-end infrastructure as well.
For tools, you could use either VisualStudio and friends if you are developing on Windows or MonoDevelop as an IDE if you are writing it on Linux. MonoDevelop also allows you to use Subversion or Git for source control and NUnit for unit testing.
For communication with the desktop client, check-out REST as an alternative for providing an API to the desktop client while building the website.
Of course, there are many other options to choose from.
EDIT: I wrote all of this before I knew that the server had been written and that Java had been chosen as the language.
Visual Studio .NET,VB 或 C#。
Visual Studio .NET, either VB or C#.
您的问题(太)广泛,所以只是一个简短的建议:Adobe Air 可能是候选人?
Your question is (too) broad, so just a short recommendation: Adobe Air may be a candidate?