Spring Framework的设计哲学(Bing翻译)

2023-11-09

3. Design Philosophy
When you learn about a framework, it’s important to know not only what it does but what principles it follows. Here are the guiding principles of the Spring Framework:

Provide choice at every level. Spring lets you defer design decisions as late as possible. For example, you can switch persistence providers through configuration without changing your code. The same is true for many other infrastructure concerns and integration with third-party APIs.
Bing翻译:
提供各个级别的选择。Spring 允许您尽可能晚地推迟设计决策。例如,可以通过配置切换持久性提供程序,而无需更改代码。许多其他基础架构问题以及与第三方 API 的集成也是如此。

Accommodate diverse perspectives. Spring embraces flexibility and is not opinionated about how things should be done. It supports a wide range of application needs with different perspectives.
Bing翻译:
适应不同的观点。Spring拥抱灵活性,对应该如何做事并不固执己见。它支持具有不同视角的广泛应用需求。

Maintain strong backward compatibility. Spring’s evolution has been carefully managed to force few breaking changes between versions. Spring supports a carefully chosen range of JDK versions and third-party libraries to facilitate maintenance of applications and libraries that depend on Spring.
Bing翻译:
保持强大的向后兼容性。Spring 的演变经过精心管理,迫使版本之间几乎没有重大更改。Spring 支持一系列精心挑选的 JDK 版本和第三方库,以方便维护依赖 Spring 的应用程序和库。

Care about API design. The Spring team puts a lot of thought and time into making APIs that are intuitive and that hold up across many versions and many years.
Bing翻译:
关心 API 设计。Spring 团队投入了大量的思想和时间来制作直观的 API,并且可以跨多个版本和多年运行。

Set high standards for code quality. The Spring Framework puts a strong emphasis on meaningful, current, and accurate javadoc. It is one of very few projects that can claim clean code structure with no circular dependencies between packages.
Bing翻译:
为代码质量设定高标准。Spring 框架非常强调有意义、最新和准确的 javadoc。它是极少数可以声明干净的代码结构且包之间没有循环依赖关系的项目之一。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Spring Framework的设计哲学(Bing翻译) 的相关文章

随机推荐