![soa存储比aos优势](https://img-blog.csdnimg.cn/img_convert/62b5b433fc3e81a756ae937aaaf026e9.png)
soa存储比aos优势
I agree with Clemens on the postcondition discussion. At the risk of using two quickie "gun/bullet" analogies in a month, I offer this one to explain why checking post-conditions is as (or more) important as checking pre-conditions.
我同意克莱门斯关于后置条件的讨论。 我冒着在一个月内使用两个快速“枪支/子弹”类比的风险,向我提供了这个理由来解释为什么检查后置条件与检查先决条件一样重要(或更多)。
It's better to take the bullets out of the gun, than to wear a bullet-proof vest.
从子弹中取出子弹比穿防弹背心更好。
Too often message validation is considered a defensive manuever to protect one's self from bad input. I believe this "knee-jerk" style of coding is an artifact of C and C++ where engineers always check input pointers for nulls and such.
通常,消息验证被认为是一种防御手段,可以保护自己免受不良输入的侵害。 我相信这种“过急的”编码风格是C和C ++的人工产物,工程师们总是在其中检查输入指针是否为null等。
In a system that is constrained by contracts, you certainly know as much about the outgoing messages and inherent contract as the incoming, so there's no reason not validate the outbound messages.
在受合同约束的系统中,您当然对传入消息和固有合同的了解与传入一样多,因此没有理由不验证出站消息。
soa存储比aos优势