The reuse issue is absolutely critical — it would be insane to write everything from scratch for each application, because it would take too long to redevelop each component.
重用的问题相当关键——为每个应用程序都从新开始编写所有的内容是非常愚蠢的,因为重新开发每个组件会花费太长时间。
If the need for reuse is not great, it's completely logical to write schemas this way.
如果重用的需求不是十分迫切,那么用这种方式编写模式是完全合理的。
For instance, I could write a validation rule asserting that a given parameter was not null and then reuse it across all methods needing the same rule.
例如,我可以写一个验证规则,用于断言指定参数不为null,然后在所有需要同样规则的方法中重用它。
应用推荐