`
power1128
  • 浏览: 24247 次
  • 性别: Icon_minigender_1
  • 来自: 成都
文章分类
社区版块
存档分类
最新评论

State vs Status

 
阅读更多

本人一直很困惑的一个问题:“状态”有时候叫Status,有时候叫State。这两个词有什么区别?我们在设计数据表或者对象时怎么取舍?

最近google到一个合理的解释:

http://stackoverflow.com/questions/1162816/naming-conventions-state-versus-status 写道
It depends on the context

State generally refers to the entire state of an entity - all its values and relationships at a particular point in time (usually, current)

Status is more of a time-point, say, where something is at in a process or workflow - is it dirty (therefore requiring saving), is it complete, is it pending input, etc
 翻译如下:
power1128 写道
这取决于使用环境。
State一般囊括了一个实体的所有状态。
Status更像是一个时间点,比如在一个流程中,这个对象是dirty、complete或者pending input等等。
 

分享到:
评论

相关推荐

    英语单词state与status的区别

    英语中的“state”和“status”虽然在中文中都可翻译为“状态”,但在实际使用中,它们有着明显的差异。了解这些差异对于精确地表达思想和理解英文文本至关重要。 首先,“state”一词通常用于描述一种持续性或稳定...

    2015-state-of-devops-report.pdf

    ### 2015 DevOps状态报告核心知识点 #### 执行摘要 - **高绩效IT组织的特点**:根据第四年度的DevOps状况调查,高绩效的IT组织在部署频率、交付周期时间、失败率以及恢复速度方面表现出显著优势。...

    android_wifi_status

    这个"android_wifi_status"的主题主要关注如何检测当前设备是通过WiFi连接还是通过GPRS(General Packet Radio Service,一种2G移动通信的数据服务)进行网络访问。在Android应用开发中,这一功能通常用于提供更优质...

    了解 flex State对象

    在Flex中,一个状态(Status)代表了应用程序的一个特定视图或阶段,例如登录界面、购物车页面等。状态设计使得开发者能够轻松地切换和定制这些视图,而无需编写大量的条件逻辑或手动调整组件的属性。状态之间的转换...

    SVN解决one or more files are in a conflicated state

    你可以通过运行`svn status`命令来列出所有冲突的文件,这些文件的标志通常会显示为“C”。 3. **2. clean up.txt**:这个文件可能包含关于如何使用`svn cleanup`命令的指导。`svn cleanup`用于解除工作副本中的...

    Tutorial: Create a State Machine Workflow

    http://msdn.microsoft.com/en-us/library/ms734766(v=VS.90).aspx ...MSDN的例子,不过照着步骤一步步做来没能成功,少了各 Activity的 MethodInvoking , newstatus, orderid 的设置,存一下修改后成功的例子。

    warframe-status:解析worldState.php的简单快递应用

    解析worldState.php的简单快递应用 使用权 REST-ish: http://$host:$port/$platform http://$host:$port/$platform/$child-item http://$host:$port/$a-bunch-of-static-data 插座: ws://$host:$port/sockets ...

    解决 [ONNXRuntimeError] : 1 : FAIL Non-zero status code returned

    在将PyTorch模型转换为ONNX格式后,运行ONNX模型时遇到的错误"ONNXRuntimeError: 1: FAIL: Non-zero status code returned while running FusedConv node"通常是由于模型转换过程中丢失了一些关键信息或者ONNX不支持...

    Apache Hadoop 3.x state of the union and upgrade guidance

    Wangda Tan and Wei-Chiu Chuang the current status of Apache Hadoop 3.x—how it’s used today in deployments large and small, and they dive into the exciting present and future of Hadoop 3.x—features ...

    Android Studio 视频播放失败 start called in state1 异常怎么解决

    在使用MediaPlayer播放音频时报出 E/MediaPlayerNative: start called in state 1, mPlayer(0x0) @Override public void onClick(View v){ Bundle b = new Bundle (); switch(v.getId ()){ case R.id.start: //获取...

    Subway luggage abnormal state video

    在描述中提到的“Collect abnormal status of luggage”意味着系统配备了专门的视频分析算法,能够识别行李的异常行为。这可能包括无人看管的行李、快速移动的行李、或者行李的不寻常形状和大小等。AI和机器学习是...

    linux系统下一个冷门的RAID卡ioc0及其监控mpt-status

    如果`mpt-status`的文档(位于`/usr/share/doc/mpt-status-版本号/FAQ`)中没有提供直接的信息,可能需要联系LSI的技术支持或者进一步研究控制器的驱动程序源代码来确定如何获取RAID级别信息。 总的来说,监控和...

    github-status-action

    authToken (必填) 如果您需要触发其他使用“ on:status”的工作流,请使用secrets.GITHUB_TOKEN或您自己的令牌。 state (必填) 检查的状态应仅为success , error , failure或pending context 上下文,显示...

    北大acm第1014题源代码

    list->state = (status *)realloc(list->state,(list->listSize + LIST_INCREASEMENT) * sizeof(status)); if(!list->state) exit(OVER_FLOW); list->listSize += LIST_INCREASEMENT; } *(list->state + ...

    HP-dos-AMDbrand.GHO

    HP部分笔记本,重写BIOS或更换主板后,开机提示“WANING!!-Machine is not in committed state!”屏幕出现"主机处于未定义状态"警告。

    state_fair:用于Elixir应用程序的状态机系统

    州展受到启发,安装该软件包可以安装为: 添加state_fair到您的依赖项列表mix.exs : def deps do [{:state_fair,“〜> 0.1”}]结束概述defmodule Order do import StateFair defstruct status: :new state_...

    deployment-status-update:此操作使您可以轻松更新GitHub上Deployment的状态。 在https:developer.github.comv3reposdeployments#create-a-deployment-status了解更多信息。

    通过POST请求,携带`state`、`target_url`(可选,指向部署详情页面的URL)和`description`(可选,简要描述状态)等参数,即可向GitHub服务器发送更新请求。在`deployment-status-update-master`压缩包中,可能包含...

Global site tag (gtag.js) - Google Analytics