97-things-every-x-should-know
97 Things Every Programmer Should Know

Updated 2 months ago

chrisleejing (@chrisleejing) started discussion #17

8 months ago · 0 comments

Open

And we certainly don't get much help from industry in this regard. Introductions to object orientation tacitly promote such design, because they often show examples composed of graphs of relatively long-lived objects that happily call mutator methods on each other, which can be dangerous. However, with astute test-driven design, particularly when being sure to "Mock Roles, not Objects", unnecessary mutability can be designed away.

Apply Functional Programming Principles (Edit this file)

in this regard: 在这方面; tacit: 默认; promote: 促进; compose...of: 由...组成; mutator: 突变; astute: 精明的; mock: 模仿, 嘲笑; mutability: 可变性.

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant