为什么有这么多具有相同功能的 Java 框架?
我注意到有很多框架基本上都有相同的目的,比如 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因为这一切都与完成任务的正确工具有关。编程语言也有很多,但每种语言的方法都略有不同。查看 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.