把代码编写成小的构建块会提高代码的可重用性,因此这是您应该遵守的主要设计原则之一。
Writing code as small building blocks makes the code more reusable, so this should be one of your main design criteria.
相反,要把服务设计成组合服务和流程中的规范元素——可重用性。
Rather design the service to be a textbook constituent in composite services and processes - reusability.
要记住重用和可重用性的区别;避免针对未来才使用(重用)服务的广泛的潜在消费者进行投机性契约设计。
Note the distinction between reuse and reusability; don’t try to do speculative contract design for a broad range of potential future consumers that may (re)use the service.
应用推荐