Scala 和#x2B; 的良好组合是什么? Web 框架 + JavaScript 框架?
很长一段时间以来,我一直在尝试研究一些不同的东西来构建我如此计划的网络项目(笑),我尝试了一些 Django 和 Rails,但放弃了,主要是因为语言。我使用 Java,但不想使用 JSP/JSF/Servlet 进行开发... 阅读 Scala 再次激发了我对研究 Web 技术来构建项目的兴趣。
老实说,我从未使用过 javascript 框架,因此从未使用过 json。
我浏览了一长串 Scala Web 框架(主要是 Lift、Scalatra、Bowler、Scalate、Play!....),然后我意识到我需要一些 javascript 技术来构建页面。 坦白说,当我可以简单地使用 Extjs 这样的东西时,我不知道我是否愿意从头开始构建组件,所以我决定搜索 javascript 框架。
因此,我在搜索树中向下一级(Scala -> [web 框架] -> [javascript 框架])并意识到我完蛋了。
我需要选择一些东西来学习,并且我想选择一些有用的东西,即使有像 Extjs 这样的商业许可证。
当我决定学习Lift时,我发现Lift+Extjs集成存在一些问题,主要是因为他们没有提供这种集成,建议您实现自己的(不知道这会需要多少工作)。
然后我读到了 Lift + Cappuccino,但在意识到 Scala + Lift + Cappuccino 的学习曲线后立即哭了......但如果它真的值得,我可以做到......
所以,我的问题是,可能的好处是什么Scala Web 框架和 javascript 框架的组合?
我真的陷入了这个问题,并且厌倦了简单地搜索框架只是试图猜测哪个是最好的、更灵活的,所以我不会在未来巨大的架构问题上浪费时间。
ps:我对 javascript 框架最关心的问题之一是组件。例如,我需要一个好的树实现,但我自己无法构建一个(我可以看到 Extjs、Cappuccino、jQuery 等中有树组件......)。
ps2:谢谢您的建议!问题结束:-(
ps3:我决定使用 Play/jQuery/Coffeescript/Backbone。
I have been trying for a long time to study something different to build my so planned web project (lol) and I went through some Django and Rails but gave up, mainly because of the language. I work with Java, but don't want to develop using JSP/JSF/Servlet...
Reading about Scala raised again my interest in Studying web technologies to build my project.
To be honest, I never worked with javascript frameworks and therefore json.
I went through a long list of Scala web frameworks (mainly Lift, Scalatra, Bowler, Scalate, Play!....) and then I realized I would need some javascript technology to build the pages.
Frankly, I don't know if I am willing to build from scratch components, when I could simply use something like Extjs, so I decided to search for javascript frameworks.
So, I went down one level in the search tree (Scala -> [web framework] -> [javascript framework]) and realized I am screwed.
I need to choose something to learn, and I would like to choose something useful, even if has commercial license like Extjs.
When I decided to study Lift, I could see some problems in Lift+Extjs integration, mainly because they don't provide this integration, and suggest you to implement your own (don't know how much work this would be).
Then I read about Lift + Cappuccino, but instantly cried blood after realizing the learning curve of Scala + Lift + Cappuccino... but if it really worths, I could do it...
So, my question is, what are the possible good combinations of Scala web frameworks and javascript frameworks?
I am really stuck in this question, and fed up of simply searching about frameworks just trying to guess which is the best and more flexible so I wont waste my time with future huge achitectural problems.
ps: one of my main concern about the javascript framework is the components. For instance, I need a good tree implementation, but I couldn't build one myselft (I could see there is tree components in Extjs, Cappuccino, jQuery and others....).
ps2: thank you for the suggestions! Question closed :-(
ps3: I decided to use Play/jQuery/Coffeescript/Backbone.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试 Scala + Wicket
当涉及 JavaScript 和 Wicket 时,我在包装 YUI 方面取得了良好的效果。这是一篇关于如何在 Java 中执行此操作的博客文章,您可以在 Scala 中轻松执行相同操作: YUI 自动完成教程
有一些库为 Wicket 包装 JavaScript 小部件,例如 WiQuery 这可能就是您所需要的。
请记住,Wicket 的卖点之一是,对于典型的 Ajax 行为(加载/更新给定的 div 等),您可以在 Java(或 Scala)中完成,而无需编写任何 JavaScript 代码。
Try Scala + Wicket
When it comes to JavaScript and Wicket, I've had good results wrapping YUI. Here's a blog post on how to do it in Java, you can very easily do the same in Scala: YUI Autocomplete Tutorial
There are libraries that wrap JavaScript widgets for Wicket, such as WiQuery which is probably all that you need.
Keep in mind that one of the selling points of Wicket is that for typical Ajax behaviors (loading / updating a given div etc.) you can do it in Java (or Scala) without writing any JavaScript code.