跳到正文
L-SYSTEM

Anatomy of a Conditional: Two Clauses, One Sentence

预览单元:这个单元无需报名即可打开。其余单元在报名后开放。

讲解用你的语言:由你的助手来讲。 本单元——文本:中文,由课程作者从俄语翻译。 所教语言: 英语 · 课程材料: 俄语 · 讲解为这种语言设计:俄语 · 考试: 英语,不翻译. 如何连接助手

和你的助手一起学这节课

条件句的结构

条件句由两个部分——分句——组成:

  • if 分句——条件;
  • 主句(result clause)——由条件得出的结果。
If the migration fails,        we roll back automatically.
└──── if-клауза ────┘          └──── главная часть ────┘

两个部分都不能单独存在。If the migration fails 让读者悬着等下文;we roll back automatically 在语法上是独立的,却没有说明什么时候发生。

顺序可以调换

两种顺序都正确,意思也一样。变的是重点:放在前面的,就是你想让人注意的。

顺序 例句 重点
条件在前 If the migration fails, we roll back automatically. 在风险上
结果在前 We roll back automatically if the migration fails. 在保护措施上

给团队写状态更新时,你会用第一种。在描述功能的文档里,用第二种。

逗号规则

规则只有一条,值得记住,因为它是机械的:

if 分句在前 → 加逗号。主句在前 → 不加逗号。

  • ✅ If the build is red, don't merge.
  • ✅ Don't merge if the build is red.
  • ❌ Don't merge, if the build is red.
  • ❌ If the build is red don't merge.

对照俄语。 俄语标点总是在“если”前加逗号:“Не мержи, если сборка красная”。英语不是这样:条件放在后面时,if 这个词本身就标出了分界,逗号是多余的。这个错误在水平高的学员身上保留得最久——正是因为俄语规则会自动起作用。

q 什么在前? a if 分句 If the build is red, don't merge. q->a 条件 b 主句 Don't merge if the build is red. q->b 结果 ca 加逗号 a->ca cb 不加逗号—— 不要照搬俄语规则 b->cb
图示意图:加不加逗号,取决于什么在前
描述

一个菱形,里面是问题“什么在前?”。箭头“条件”指向方框“if 分句:If the build is red, don't merge.”,下方是“加逗号”。箭头“结果”指向方框“主句:Don't merge if the build is red.”,下方是“不加逗号——不要照搬俄语规则”。示意图把规则归结为一个关于两部分顺序的问题。

动词时态不等于事件时间

这一个想法能打开整门课程。

动词时态(tense)是形式:fails、failed、had failed。 事件时间(time)是事情发生的时候:现在、昨天、下周二。

在条件句里,两者并不一致:

  • If it rains tomorrow, the outdoor stand-up is cancelled. ——present(rains),而时间是将来。
  • If we had more staging capacity, we would test this properly. ——past(had),而时间是现在。说的是今天的资源,不是去年的。

那么时态往后移表达的是什么?是到现实的距离。Present 是现实中可能的事。Past 是现在想象的事。Past perfect 是过去想象的事,也就是已经没有发生的事。

速写本的跨页:左边是水彩画的工程师坐在办公桌前,右边用淡铅笔画着她本人在海滩上
图速写本的跨页:左边是水彩画的工程师坐在办公桌前,右边用淡铅笔画着她本人在海滩上
描述

一本摊开的旧速写本放在粗糙的木桌上。左页是暖色水彩:一位穿绿色毛衣的年轻女子坐在办公桌前,桌上有笔记本电脑和杯子,窗外在下雨。右页只用淡铅笔画成,没有颜色:同一位女子在海边的遮阳伞下躺在躺椅上休息,旁边的沙滩上放着一本合上的记事本。这是整门课程的钥匙:水彩是现实(“我现在在工作”),素铅笔是想象(“If I had a week off, I would be at the sea”)。这里的 past simple had 说的是今天,不是过去。图画并不展示动词形式本身——只展示什么是现实,什么不是。

课程里所有的图都是这样:水彩是现实,淡铅笔是想象。所以类型不能从动词形式上“读”出来。要问的是:说话人对世界断言了什么。这门课程教的正是这个,而不是时态表。

四种传统类型

你多半见过它们。它们是四种常见情况的方便标签,课程也使用它们,但整个体系并不止于此。

名称 结构 例句
Zero if + present, present If the cache key is missing, the service queries the database.
First if + present, will + infinitive If we merge today, we will ship on Friday.
Second if + past simple, would + infinitive If we had a second reviewer, the queue would move faster.
Third if + past perfect, would have + past participle If we had pinned the version, the build would not have broken.

下面是 ENGAGE 一个工作周里的四个普通句子,它们哪种类型都套不进去:

  • If the retry succeeded, the alert must have been noise. (对过去的推断——u08)
  • If the load test passes, deploy to production. (指令——u03)
  • If you assess the data thoroughly, you might find the root cause. (减弱的预测——u07)
  • If we had pinned the version, the build would not be broken right now. (原因在过去,结果在现在——u06)

这四句都是正常的英语。后面都会讲到。放在这里,只是为了让你不再期待每个条件句都有一个编号。

真正在变的是什么

三样东西,而且几乎各自独立地变化:

  1. 条件有多真实? ——事实、很可能的将来、可能性不大的假设,还是不可能的事。
  2. 说话人在做什么? ——断言、预测、推断、建议、下指令、表示遗憾。
  3. 他有多确定? ——同一个位置上的 will / should / might 表达的确定程度大不相同。

接下来,课程会依次沿着这三条轴展开。

练习

在这里检查不会改变任何东西:报名课程后答案才开始计入。

  1. We escalate to the on-call lead if the error rate stays above two percent for five minutes. 哪一部分是 if 分句?

  2. If you had joined the call, you would have heard the client's actual deadline. 哪一部分是主句(result clause)?

  3. 调换两部分的顺序,让主句在前,并加好标点。写出完整的句子,首字母大写,句末加句点: If the pipeline is green, the artefact is published automatically.

  4. 调换两部分的顺序,让 if 分句在前,并加好标点。写出完整的句子,首字母大写,句末加句点: The scheduler drops the job if the worker does not respond within thirty seconds.

  5. 调换两部分的顺序,让主句在前,并加好标点。写出完整的句子,首字母大写,句末加句点: If we had known about the rate limit, we would have batched the requests.

  6. 哪个句子的标点正确?

  7. 哪个句子的标点正确?

  8. 你在翻译运行手册里的一句话:“Откатываем релиз, если падает больше 1 % запросов”。哪个译文的标点正确?

  9. If the disk filled up, the log rotation was misconfigured. 不看动词形式,这个句子说的是什么时间?

  10. If I had root access, I would check that myself. 这个句子说的是什么时间?

  11. If the release is signed off today, QA starts tomorrow. 条件说的是什么时间?

  12. If we had pinned the version, the build would not be broken right now. 时间是怎样分布的?

  13. 请看画着工程师的跨页:左边是彩色的办公桌,右边是淡铅笔画的海滩。图中什么是现实?

  14. 哪个句子最符合画着工程师的跨页?

  15. If the cache key is missing, the service queries the database. 哪个标签合适?

  16. If the retry succeeded, the alert must have been noise. 哪个标签合适?

  17. 选一个你熟悉的系统(框架、CI 流水线、自己的项目)。写两个描述它行为的条件句:一个 if 分句在前,另一个主句在前。

    这道题按作者的评分标准判定——由你的助手判定,而不是网站。