当程序执行对数据进行更改的动作时,您不知道这是什么?
在我的程序中,我需要一个“预览”模式,它不会对数据进行任何更改,我在其他应用程序中看到过这个通用名称,但我无法确定它。有什么想法吗?
谢谢
In my program I need a 'preview' mode where it doesn't make any changes to the data, there's a common name for this that I've seen in other apps but I can't put my finger on it. Any ideas?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我想你已经说到点子上了——大多数文字处理软件都有“打印预览”功能。 “预览您的更改”是非常常见的术语。
I think you've hit the nail on the head - you have "Print Preview" in most word processors. "Preview your changes" is pretty common terminology.
Subversion 使用术语“试运行”来描述不向本地文件写入任何更改的合并(即从分支应用补丁)。如果您想在不实际执行合并的情况下检查给定的合并是否会发生冲突,这非常有用。
Subversion uses the term "dry run" to describe a merge (i.e. applying a patch from a branch) that doesn't write any changes to local files. This is useful if you want to check whether a given merge will conflict without actually performing the merge.
在数据库和源控制系统的上下文中,这称为“事务”。事务的操作在完成之前并不是最终的。如果操作在事务中间停止,则可以撤回整个操作而不影响数据。
该术语通常不适用于提供“预览”的 GUI 应用程序,因此它可能不是您想要的。
In the context of data bases and source control systems this is called a "transaction". The operation of a transaction is not final until it is complete. In case the operation stops in the middle of the transaction, the entire operation can be withdrawn with no effects of the data.
This term doesn't usually apply to GUI application which present "previews" so it's probably not what you're looking for.
许多命令行工具都有这样的模式,他们通常称之为“试运行”。在 Unix 工具中,它通常由
-n
标志启用。例如,make -n
将显示make
将执行哪些命令,而无需实际执行它们。Many command line tools have a mode like this, and they usually call it a "dry run". In Unix tools it's often enabled by the
-n
flag. For example,make -n
will show you what commandsmake
would execute without actually executing them.