State vs Status 如何选用“状态”词

state 用于定义流程中的各个阶段:比如:待处理、已生成、已调度、待发货、已验收。

status 用于描述一个项目的结果:比如:成功、失败 (success/fail)

参考注释如下:
A system is in a certain “state” at a point in time when the system meets a pre-defined set of criterion, i.e. on shopping website, a user’s shopping cart enters a different state when the customer adds an item to it.
当系统满足一组预先定义的标准时,即在购物网站上,当用户向其添加商品时,用户的购物车进入不同的state,则系统处于某个“状态”。
A “status”, in the context of states of a system, describes the transition into a state. For example, the user of our online shop may attempt to add an item to their cart. The transition into the state that describes the item being in the cart may be blocked if the status of the transition signals an error (i.e. the item is out of stock).
在系统state的上下文中,“status”描述了向state的转换。例如,我们在线商店的用户可能会尝试将商品添加到他们的购物车中。如果转换state指示错误(即,该商品缺货&#

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值