soa存储比aos优势_在SOA中检查后置条件比检查先决条件重要(或更重要)

soa存储比aos优势

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.

在受合同约束的系统中,您当然对传入消息和固有合同的了解与传入一样多,因此没有理由不验证出站消息。

翻译自: https://www.hanselman.com/blog/checking-postconditions-in-soa-as-or-more-important-than-checking-preconditions

soa存储比aos优势

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值