为什么有这么多具有​​相同功能的 Java 框架?

发布于 2024-12-11 03:19:38 字数 206 浏览 0 评论 0原文

我注意到有很多框架基本上都有相同的目的,比如 ORM、MVC 框架等。如果所有这些人可以聚集在一起,为一个问题域开发一个框架,而不是浪费精力,这不是更好吗?重新发明轮子?是否有任何流程可以承担该任务,或者该任务不太可能发生?这是一件好事还是多样性就像“竞争孕育完美”一样好?就我个人而言,我认为如果有人能够针对单个问题标准化单一框架,那么将会使生活变得更加轻松,并且能够快速改进框架。我被误导了吗?

I've noticed there are a lot of frameworks that basically serves the same purpose, like ORMs, MVC frameworks, etc. Wouldn't it be better all those guys can get together and work on one framework for one problem domain rather than wasting effort on reinventing the wheel? Are there any process that undertakes the task, or is it unlikely that it will ever happen? Would it be a good thing or is diversity good as in "Competition breeds perfection"? Personally I think if someone can standardize a singular framework for a single problem it will make life a lot easier as well as improving the framework really fast. Am I misguided?

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

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

发布评论

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

评论(1

一人独醉 2024-12-18 03:19:38

因为这一切都与完成任务的正确工具有关。编程语言也有很多,但每种语言的方法都略有不同。查看 Java 框架功能的比较,了解我的意思:http://en.wikipedia.org /wiki/Comparison_of_Web_application_frameworks#Java_2

一个框架可能要求以某种方式编写代码。一些程序员会接受它,因为它会产生更一致的代码。其他框架让程序员选择如何构建应用程序。同样,有些人可能会喜欢它所提供的灵活性。

Because it's all about the right tool for the task. There are a lot of programming languages too, but each has a slightly different approach. Check out this comparison of Java framework features to see what I mean: http://en.wikipedia.org/wiki/Comparison_of_Web_application_frameworks#Java_2

One framework may require that code be written in a certain way. Some programmers will embrace it, because it will result in more consistent code. Other frameworks let the programmer choose how they build their application. Again, some may like the flexibility that this offers.

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