As you can see, building fluent interfaces is straightforward.
如您所见,构建连贯接口很简单。
I'll show you several types of fluent interfaces, starting with method chaining.
我会向您展示几种连贯接口,首先是方法链接。
Fluent interfaces remove unnecessary noise from your syntax, allowing for more readable code.
连贯接口移除语法中不需要的繁杂干扰,从而实现更可读的代码。
Building fluent interfaces is an example of knowing when it makes sense to break some of the rules.
构建连贯接口就可以知道什么时候违反一些规则是行得通的。
One pitfall that's inherent in fluent interfaces under certain circumstances is known as the finishing problem.
连贯接口固有的一个缺陷在某些情况下也称作终了问题。
Certainly chaining is a common technique to use with fluent interfaces, but true fluency is much more than that.
然而链式调用是流畅接口的一种常用方法,真实的流畅接口不止这么一点点。
Fluent interfaces provide a simple way to change the way you write code so that you can more readily see the idiomatic patterns you've fought to identify.
连贯接口提供一种简单的方式来更改编写代码的方式,以便您更容易看到一直竭力识别的惯用模式。
Fluent interfaces provide a simple way to change the way you write code so that you can more readily see the idiomatic patterns you've fought to identify.
连贯接口提供一种简单的方式来更改编写代码的方式,以便您更容易看到一直竭力识别的惯用模式。
应用推荐