桌面 GUI 编程 - 我如何从 Web 开发人员\前端设计师的角度理解它?

发布于 2024-11-19 12:53:40 字数 616 浏览 2 评论 0原文

当我开发 Web 应用程序时,我通常使用 html 进行布局,使用 css 进行外观,使用 javascript(或 css3,如果支持)进行精美的动画,并使用服务器端脚本语言(php、python、ruby)来实现做数据库、CRUD 和计算的工作。

我最近有了一个关于独立桌面应用程序的想法。 我花了一些时间在许多网站上浏览,以对其如何工作有一个基本的了解,但我认为我唯一了解的是它不像我习惯的那样工作。

此时我的问题如下:

1)应用程序和前端(设计)之间的交互如何工作?它是像 html/css 那样“注入”数据并通过操作(按钮、链接、表单等)获取响应还是有所不同?

2)具体来说,如果我使用 c++ 进行开发,如何从控制台输出到 GUI,以及如何像使用 jquery 那样做“花哨的东西”(这么说)?

3) 我查看了 Flex 和 Titanium。如果我理解正确的话,它们提供了将用 html/css 和 AS3、Flex 或 Python/Ruby 编写的 Web 应用程序发布到桌面的可能性。但他们“好”吗? (如果你原谅这个愚蠢的问题,我希望你明白我的意思:D)

如果我严重误解了一切,我很抱歉,请怜悯我的无知:)

编辑2011年7月13日:我对基本的内容特别困惑结构。是不是像MVC?

When I develop applications for the web, I usually have the html for the layout, the css for the looks, the javascript (or css3 if supported) for the fancy animations and a server-side scripting language (php, python, ruby) to do the database, CRUD and calculations stuff.

I recently had an idea for a standalone desktop application.
I've spent some time looking around on numerous sites to get a basic understanding on how it would work, but I think the only thing I understood was that it does not work like I am used to.

My questions at this point are the following:

1) How does the interaction between Application and Frontend (design) work? Is it like html/css in which you "inject" data and get responses via actions (buttons, links, forms etc.) or is it different?

2) Specificly, if I'd develop with c++, how do I get from a console output to a GUI, and how do can I do "fancy stuff" (so to say) like I do with jquery, for example?

3) I took a look at both Flex and Titanium. If I understand correctly, they offer the possibility to publish web applications written in html/css and either AS3, Flex or Python/Ruby to the desktop. But are they "good"? (if you pardon this silly question, I hope you understand what I mean :D )

I'm sorry if I misunderstood everything terribly, have mercy with my ignorance :)

EDIT 13/Jul/2011: I'm particularly confused about the basic structure. Is it like MVC?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

杯别 2024-11-26 12:53:40

如果您的应用程序是以数据为中心的,我可能会选择 Flex。如果您想通过 adobe AIR 制作 RIA(富互联网应用程序)或桌面应用程序,它的功能非常强大。而且,由于您已经熟悉通过标记语言设计网站,因此您会喜欢 MXML(尽管您可以绕过它并完全在 AS3 中编程,因为它只是将 mxml 编译到 AS3 中)。您还可以继续使用 CSS 样式表或其他各种皮肤技术来设计您的应用程序。 Air 将允许您通过各种协议与客户端进行通信,并在客户端操作和存储它。AS3 编译为 .SWF 文件,然后保存在 HTML“包装器”中,但我相信它确实支持嵌入html。

希望这就是您正在寻找的!

well if your app is to be data-centric , I would probably go with Flex. It is very powerful if you want to make RIA(rich internet applications) or desktop apps via adobe AIR. And, since you already are comfortable with designing websites via a markup language you will like MXML (though you can bypass that and program entirely in AS3, as it just compiles the mxml into AS3). You may also continue to use CSS style sheets or other various skinning techniques to style your app. Air will allow you to communicate with the client through a variety of protocols and both manipulate and store it on the client side.The AS3 compiles to a .SWF file and is then held in an HTML "wrapper", but I believe it does support embedding of html.

Hope that is what you were looking for!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文