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

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。它是极少数可以声明干净的代码结构且包之间没有循环依赖关系的项目之一。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值