Web MVC 框架是否更易于与动态语言一起使用?

发布于 2024-07-13 01:21:59 字数 331 浏览 3 评论 0原文

我之所以问这个问题,是因为我观察到像 RoR 和 Django 这样的框架是两个领先的 MVC 框架,它们确实引起了社区的关注。 我知道早在 RoR 或 Django 出现之前,Java 世界就已经有 MVC 框架了,但并没有那么令人兴奋。

如果您想使用 MVC 模式构建应用程序,像 Ruby / Python 这样的语言是更好的选择吗? 如果您是一名 .net 开发人员并且非常精通 Python/Ruby,您是否看到使用 IronPython / IronRuby 构建 ASP.net MVC 应用程序的任何优势?

我真的很期待 Visual Studio 像支持 C# 一样支持动态语言。

The reason I am asking this is due to my observation that frameworks like RoR and Django are two of the leading MVC frameworks out there which really have stirred up the community. I know there are MVC frameworks in Java world long before RoR or Django came out, but there wasnt so much excitement.

Are languages like Ruby / Python a better choice if you want to build an application using MVC pattern?
If you are a .net developer and pretty well versed with Python/Ruby, do you see any advantages of building ASP.net MVC apps using IronPython / IronRuby ?

I am really looking forward for Visual Studio to support dynamic languages just the way it supports C#.

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

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

发布评论

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

评论(2

勿挽旧人 2024-07-20 01:21:59

老实说,这并不是将 Java 与 RoR 和 Python 进行比较的最佳示例。 因为Java的MVC实现是在其Windows端开发而不是Web上。 JSP 从来都不是 Web 开发人员的最爱,所以它一开始就落后于其他人。

但要回答你的问题。 没有理由不使用C#或VB.NET等静态语言来开发ASP.NET MVC。 实际上并没有大量的静态语言能够为 Web 提供真正良好的 MVC 实现,因此这可能就是您看到大部分开发都在 RoR、Python 和 PHP 中进行的原因。

但是,如果您想了解更改和推出用 C# 开发的 MVC 应用程序的速度有多快,您实际上只需查看当前所在的站点即可。 Jeff Atwood 和团队做得非常出色,他们不断更新架构,没有出现任何问题。

因此,我建议您将 C# 与 ASP.NET MVC 结合使用,暂时忘记 IronPython,因为该语言尚未解决所有问题。

It be honest it is not really the best example to compare Java against RoR and Python. Because Java's implementation of MVC was on its Windows side development not the web. And JSP has never been a favorite of web developers, so it sort of started behind the pack to begin with.

But to answer your question. There is no reason not to use a static language such as C# or VB.NET to develop ASP.NET MVC. There really hasn't been a great deal of static languages that offer a really good implementation of MVC for the web, so that is probably why you see most of the development in RoR, Python, and PHP.

But if you want to see how quickly it is to change and roll out an MVC application developed in C#, you really don't have to look any farther than the site you are currently on. Jeff Atwood and team have done a great job, and they are constantly updating the architecture with out any problems.

So I would recommend you use C# with the ASP.NET MVC, and forget about IronPython for now, because the language hasn't had all the problems worked out yet.

草莓酥 2024-07-20 01:21:59

我认为已经没有那么大的优势了。

我认为所有优秀的 MVC 框架都利用了它们所编写的语言/平台的“A”级功能。

.NET 现在拥有如此多的功能,使其本质上是“灵活/动态”的,但仍然需要进行类型检查。 我认为 .NET 4.0 只是添加了 dynamic 关键字。

网上有一两个安德斯谈论此事的视频。
在 PDC 的一次会议上,他讨论了 C#4 和 C#5 的发展方向。
我认为 MSDN 网站上还有一场圆桌讨论。

I don't think there is that much of an advantage anymore.

I think all the good MVC frameworks exploit the "A" level features of the language / platform they are written on.

.NET now has so many features that allow it to be "flexible/dynamic" in nature but still be type-checked. I think .NET 4.0 just adds to that with dynamic keyword.

There are one or two videos of Anders talking about this online.
One at the PDC where he discusses where C#4 and C#5 are headed.
And one roundtable discussion I think on the MSDN site.

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