The if-clause uses the present simple.
A cláusula com if usa o present simple.Aula
Zero e first conditional iniciais
Nível: A2
Objetivo
Usar o zero conditional para regras, procedimentos e verdades gerais do trabalho técnico, e o first conditional para descrever consequências futuras reais em runbooks, permissões e fluxos de deploy.
Explicação
O zero conditional descreve regras e fatos que são sempre verdade. A estrutura é `If + present simple, present simple`:
`If the build fails, the deploy stops.` `If you click Save, the file updates.` `If the alert fires, the runbook opens.`
Use zero conditional quando a condição e o resultado acontecem sempre, sem exceção. É a forma típica de runbooks, regras de processo e princípios técnicos.
O first conditional descreve uma situação futura real e provável. A estrutura é `If + present simple, will + verbo base`:
`If you need access, ask DevOps.` (will implícito: you will ask) `If the test passes, we will deploy tonight.` `If the worker doesn't restart, the page will stay red.`
Repare nas três regras:
- Na if-clause (cláusula com `if`), o verbo fica no present simple mesmo quando o resultado é futuro. Não use `will` depois de `if`: `If you will need access` está errado; o correto é `If you need access`.
- Na main clause (cláusula principal), use `will + verbo base` para o first conditional. `If the build fails, the deploy stops` é zero; `If the build fails, we will stop the deploy` é first.
- A vírgula entre as duas cláusulas é opcional, mas comum quando a `if-clause` vem primeiro. Quando a `if-clause` vem depois, a vírgula não aparece: `We will deploy tonight if the test passes`.
Para instruções de runbook, o zero conditional também aparece com imperativo no resultado: `If the page is red, restart the worker.` O imperativo é neutro em tempo e funciona como uma regra direta.
No dia a dia, `will` aparece contraído em frases curtas: `I'll`, `you'll`, `we'll`, `they'll`, `it'll`, `the team'll` (mais raro). Em escrita técnica, prefira a forma cheia `will` em procedimentos e políticas.
Exemplos
| Inglês | Tradução | Observação |
|---|---|---|
| If the build fails, the deploy stops. | Se o build falha, o deploy para. | Zero conditional: regra sempre verdadeira. |
| If you need access, ask DevOps. | Se você precisa de acesso, peça ao DevOps. | First conditional com will implícito (you will ask). |
| If the test passes, we will deploy tonight. | Se o teste passar, nós vamos fazer o deploy hoje à noite. | If-clause no present simple; main clause com will + base. |
| If the alert fires, open the runbook. | Se o alerta disparar, abra o runbook. | Zero conditional com imperativo no resultado. |
| If the worker doesn't restart, the dashboard will stay red. | Se o worker não reiniciar, o painel vai continuar vermelho. | First conditional com doesn't na if-clause. |
Erros comuns
- Usar `will` na if-clause: `If you will need access` deve ser `If you need access`. A if-clause fica no present simple.
- Esquecer `will` na main clause do first conditional: `If the test passes, we deploy tonight` é zero. Para futuro real, use `we will deploy tonight`.
- Colocar passado na main clause: `If the build fails, the deploy stopped` mistura tempos. Use present simple no zero e will + base no first.
- Trocar `will` por `would` no first conditional: `If you need help, I would help` descreve hipótese, não futuro real. Use `I will help`.
- Começar a frase com `Will if`: a if-clause usa `if`, não `will if`. Comece com `if` ou com a main clause.
Prática guiada
Reescreva cada situação usando o conditional correto:
- Regra: "Quando o build falha, o deploy para."
Zero conditional: `If the build fails, the deploy stops.`
- Pedido de procedimento: "Se você precisar de acesso, peça ao DevOps."
First conditional: `If you need access, ask DevOps.` (will implícito)
- Plano concreto: "Se os testes passarem hoje, nós vamos fazer o deploy à noite."
First conditional: `If the tests pass today, we will deploy tonight.`
Observe que a if-clause nunca muda de tempo: fica no present simple nos dois casos.
Resumo
Zero conditional = `If + present simple, present simple` para regras e verdades sempre válidas. First conditional = `If + present simple, will + base` para consequências futuras reais. A if-clause nunca leva `will`; a main clause é que define se é regra (present simple) ou futuro (`will`).
Vocabulário
Palavras principais
The main clause tells the result.
A cláusula principal indica o resultado.We will deploy the fix tonight.
Nós vamos fazer o deploy da correção hoje à noite.If the build fails, the deploy stops is a zero conditional.
'"Se o build falha, o deploy para" é um zero conditional.'If you need access, you will ask DevOps is a first conditional.
'"Se você precisa de acesso, vai pedir ao DevOps" é um first conditional.'Follow the procedure step by step.
Siga o procedimento passo a passo.If the alert fires, open the runbook.
Se o alerta disparar, abra o runbook.We will deploy the patch after the tests pass.
Vamos fazer o deploy do patch depois que os testes passarem.Check the logs if the build fails.
Verifique os logs se o build falhar.If you need access, open a ticket.
Se você precisa de acesso, abra um ticket.Ask DevOps if you need credentials.
Pergunte ao DevOps se você precisa de credenciais.The consequence of a failed build is a stopped deploy.
A consequência de um build que falha é um deploy parado.If the page is red, troubleshoot the worker first.
Se a página estiver vermelha, diagnostique o worker primeiro.História
História: Zero e first conditional iniciais
Nível: A2
História em inglês
The new runbook
Last week, the platform team published a new runbook for the on-call shift. The first page says: "If the alert fires, open the runbook before you do anything else." The next rule is: "If you don't know the procedure, ask a senior engineer." On page two, the team wrote: "If the build fails, the deploy stops automatically." The runbook also explains: "If the test passes, we will deploy the fix tonight." At the end, there is a contact list: "If you need access, ask DevOps."
When the alert fires
On Monday, the alert fired at 2:40 a.m. Carlos was on call, so he opened the runbook first. The page was red, so he followed the rule: "If the page is red, restart the worker." He restarted the worker, and the dashboard turned green. He checked the next step: "If the job still fails, contact DevOps." The job didn't fail, so he didn't contact DevOps. Carlos closed the runbook and wrote a short summary for the morning meeting.
Tradução linha por linha
| Inglês | Tradução |
|---|---|
| Last week, the platform team published a new runbook for the on-call shift. | Na semana passada, o time de plataforma publicou um novo runbook para o plantão. |
| The first page says: "If the alert fires, open the runbook before you do anything else." | A primeira página diz: "Se o alerta disparar, abra o runbook antes de fazer qualquer outra coisa." |
| The next rule is: "If you don't know the procedure, ask a senior engineer." | A próxima regra é: "Se você não souber o procedimento, pergunte a um engenheiro sênior." |
| On page two, the team wrote: "If the build fails, the deploy stops automatically." | Na página dois, o time escreveu: "Se o build falhar, o deploy para automaticamente." |
| The runbook also explains: "If the test passes, we will deploy the fix tonight." | O runbook também explica: "Se o teste passar, nós vamos fazer o deploy da correção hoje à noite." |
| At the end, there is a contact list: "If you need access, ask DevOps." | No final, há uma lista de contatos: "Se você precisar de acesso, peça ao DevOps." |
| On Monday, the alert fired at 2:40 a.m. | Na segunda-feira, o alerta disparou às 2h40. |
| Carlos was on call, so he opened the runbook first. | Carlos estava de plantão, então abriu o runbook primeiro. |
| The page was red, so he followed the rule: "If the page is red, restart the worker." | A página estava vermelha, então ele seguiu a regra: "Se a página estiver vermelha, reinicie o worker." |
| He restarted the worker, and the dashboard turned green. | Ele reiniciou o worker, e o painel ficou verde. |
| He checked the next step: "If the job still fails, contact DevOps." | Ele verificou o próximo passo: "Se a tarefa ainda falhar, contate o DevOps." |
| The job didn't fail, so he didn't contact DevOps. | A tarefa não falhou, então ele não contatou o DevOps. |
| Carlos closed the runbook and wrote a short summary for the morning meeting. | Carlos fechou o runbook e escreveu um resumo curto para a reunião da manhã. |
Notas de vocabulário
- If the alert fires = if-clause no present simple; regra do runbook (zero conditional).
- ask a senior engineer = pedido de procedimento; will implícito no first conditional.
- If the build fails, the deploy stops automatically = zero conditional: regra técnica sempre válida.
- we will deploy the fix tonight = first conditional: if-clause no present simple e will + base na main clause.
- ask DevOps = pedido de acesso; frase típica de runbook e política interna.
- If the job still fails, contact DevOps = zero conditional com imperativo no resultado; próximo passo do runbook.
Perguntas de compreensão
- What did the platform team publish last week?
- What should you do first if the alert fires?
- What happens automatically if the build fails?
- What will the team do if the test passes?
- Who should you ask if you need access?
- Why did Carlos follow the rule about restarting the worker?
- Did Carlos contact DevOps at the end of the night?
Prática com a história
- Transforme em zero conditional: When the page is red, the team restarts the worker.
- Escreva um first conditional a partir de: "O build falhou. O deploy vai parar."
- Complete a regra do runbook: "If you ___ (need) access, ___ (ask) DevOps."
- Reescreva em first conditional: "Se o job ainda falhar hoje, nós vamos chamar o DevOps."
Prática
Exercícios e teste
A próxima melhoria é transformar esses arquivos em perguntas com resposta no navegador. Por enquanto, esta página já organiza o estudo e permite seguir a aula inteira sem abrir os arquivos manualmente.