原帖,针对第四点:
看看客户所说的话, 能不能整理为一个自然语言的子集:与业务相关的小语言,并形式化。 实现过程可以三步走:
1. 对需要变化的业务规则建立统一的模型。
2. 使用解释器模式配合配置文件来表达小语言,应对变化。
3. 当2变得复杂和难于掌握, 考虑实现一门业务小语言, 难度较深。
纸上谈兵, 没机会实战过, 而且我估计这个成本对于承接项目的公司恐怕难于接受; 除非在市场上有多家公司需要这种东西, 这样算是预支成本吧。
对于一般技术人员, 可能认为难度在于实现小语言。 其实最难的一部分是如何将业务规则及其变化归纳为一个可接受的表达形式。