Let's list the pros and cons of each option.
Vamos listar os prós e contras de cada opção.Aula
Comparar alternativas técnicas
Nível: B1
Objetivo
Comparar duas alternativas técnicas em inglês listando prós e contras, explicando trade-offs e fazendo uma recomendação justificada, usando expressões como pros and cons, trade-off, simpler, safer, more maintainable, on the other hand e I would go with.
Explicação
Comparar alternativas técnicas é uma das tarefas mais comuns no dia a dia de engenharia: ao escolher uma biblioteca, um padrão de arquitetura ou uma abordagem para um problema, o esperado é que você apresente as opções, liste prós e contras, explique o trade-off e feche com uma recomendação. Este tópico ensina exatamente essa estrutura.
1. A estrutura de uma comparação técnica
Em um design doc, em uma PR description ou em uma sync, a comparação costuma seguir quatro passos:
- Apresentar as opções com nome claro: `We are considering two options for the real-time updates: WebSockets and short polling.`
- Listar prós e contras de cada uma: `The main advantage of WebSockets is low latency. However, they are harder to maintain for a small team.`
- Nomear o trade-off: `The trade-off is between real-time updates and simplicity.`
- Recomendar uma opção com critério: `Given our small team, we recommend polling for the first version.`
Esse esqueleto funciona em texto corrido, em comentários de PR e em fala de reunião.
2. Vocabulário essencial de comparação
- pros and cons = vantagens e desvantagens. É um par fixo, sempre nesta ordem: `Let's list the pros and cons of each option.`
- trade-off = compensação, troca. Use quando nenhuma opção é claramente melhor: `There's a trade-off between latency and simplicity.`
- advantage / disadvantage = vantagem / desvantagem, em frases completas: `The main advantage is X. The main disadvantage is Y.`
- on the other hand = por outro lado. Serve para introduzir o lado oposto dentro de uma comparação: `WebSockets are real-time. On the other hand, they are harder to scale.`
- versus (vs.) = versus. Use entre duas opções: `WebSockets vs. polling.`
- upside / downside = lado positivo / lado negativo, em frases curtas: `The upside is simplicity. The downside is extra network traffic.`
3. Adjetivos comparativos em comparações técnicas
Para avaliar opções, o time usa adjetivos no comparativo. As formas mais úteis em B1 são:
- simpler (não `more simple`): `Polling is simpler to set up than WebSockets.`
- safer (não `more safe`): `For a small team, polling is the safer choice.`
- more maintainable (o adjetivo `maintainable` é longo, então usa-se `more`): `PostgreSQL is more maintainable for our use case.`
- faster, easier, cheaper, more reliable, less risky, harder to debug: formas frequentes para pesar opções.
A estrutura básica é `Option A is <comparativo> than Option B`. Nunca use `more` + adjetivo que já tem `-er` (erro comum: `more simpler`, `more faster`).
4. Frases para fazer uma recomendação
Depois de listar prós e contras, feche com uma recomendação justificada. Frases úteis:
- `Given our small team, I would go with polling.`
- `The safer choice is to extend the monolith first.`
- `We recommend Option A because it is simpler and more maintainable.`
- `On balance, the pros of polling outweigh the cons.`
A expressão on balance ('no conjunto', 'no fim das contas') indica que você olhou o quadro todo, não só um lado. Given + restrição ('dada a nossa restrição') é o padrão B1 para começar a recomendação.
5. Padrão completo em uma comparação curta
`Option A is faster, but Option B is simpler. On the other hand, Option B has a larger community. Given our timeline, I would go with Option B.`
Note a sequência: a primeira frase apresenta o contraste com `but`. A segunda usa `on the other hand` para reforçar o outro lado. A terceira usa `given` + restrição + `I would go with` para fechar com a recomendação.
Exemplos
| Inglês | Tradução | Observação |
|---|---|---|
| We are considering two options for the real-time updates: WebSockets and short polling. | Estamos considerando duas opções para as atualizações em tempo real: WebSockets e polling curto. | Padrão para apresentar as duas opções no começo da comparação. |
| The main advantage of WebSockets is low latency. The main disadvantage is the extra server complexity. | A principal vantagem dos WebSockets é a baixa latência. A principal desvantagem é a complexidade extra no servidor. | Pares fixos: main advantage of / main disadvantage of. |
| Polling is simpler to set up, but it adds extra network traffic. | Polling é mais simples de configurar, mas adiciona tráfego de rede extra. | Comparativo + but + contrapeso. |
| On the other hand, the second option is more maintainable for a small team. | Por outro lado, a segunda opção é mais fácil de manter para um time pequeno. | On the other hand introduz o lado oposto da comparação. |
| There's a trade-off between real-time updates and simplicity. | Há um trade-off entre atualizações em tempo real e simplicidade. | Trade-off between X and Y é o padrão B1 para nomear a compensação. |
| Given our small team and tight deadline, I would go with the simpler approach. | Dado o nosso time pequeno e o prazo curto, eu iria com a abordagem mais simples. | Given + restrições + I would go with é o fecho clássico de uma recomendação. |
| On balance, the pros of the simpler approach outweigh the cons. | No fim das contas, os prós da abordagem mais simples superam os contras. | On balance + pros outweigh the cons para fechar a discussão. |
| We recommend the library with a larger community because it is safer and more maintainable. | Recomendamos a biblioteca com a comunidade maior porque ela é mais segura e mais fácil de manter. | We recommend + because + comparativos encadeados. |
Erros comuns
- Duplicar o comparativo: `more simpler`, `more faster`, `more cheaper` — adjetivos curtos usam só `-er` (`simpler`, `faster`, `cheaper`).
- Esquecer `than` depois do comparativo: `Polling is simpler to WebSockets` deve ser `simpler than WebSockets`.
- Confundir o par: dizer `cons and pros` em vez de `pros and cons` (sempre nesta ordem em inglês).
- Escrever `trade off` (verbo) onde o substantivo é `trade-off` (com hífen): `There's a trade-off between X and Y.` mas `We have to trade off speed for accuracy.`
- Usar `on the other hand` sem vírgula e grudado na frase anterior: prefira `frase anterior. On the other hand, frase nova.` ou vírgula dentro da mesma frase.
- Recomendar sem critério: `I recommend Option A` vira uma afirmação fraca. Use `I would go with Option A because...` ou `Given X, we recommend Option A because...`.
- Confundir `compare to` (semelhança) com `compared to` (contraste em B1): `Compared to polling, WebSockets have lower latency.` é a forma mais segura.
- Tratar `safer` como `more safe`: o correto é `safer` (irregular). O mesmo vale para `more maintainable` (regular, com `more`).
Prática guiada
Reescreva a comparação abaixo substituindo os travessões pelos termos adequados:
> We have to choose between two libraries for the new dashboard. ___ (Library A) has more features, but ___ (Library B) is easier to learn. The ___ of Library A is its large community. The ___ is that it is harder to debug. On the ___ hand, Library B is ___ (comparativo de simple) and ___ (comparativo de safe) for a small team. There's a ___ between features and simplicity. ___ our small team, I ___ go with Library B.
Versão preenchida:
> We have to choose between two libraries for the new dashboard. Library A has more features, but Library B is easier to learn. The advantage of Library A is its large community. The downside is that it is harder to debug. On the other hand, Library B is simpler and safer for a small team. There's a trade-off between features and simplicity. Given our small team, I would go with Library B.
Note como cada peça cumpre uma função: `but` opõe, `the advantage of / the downside` lista, `on the other hand` muda de lado, `simpler / safer` avaliam, `trade-off` nomeia a compensação e `Given + I would go with` fecha a recomendação.
Resumo
Uma boa comparação técnica segue quatro passos: apresentar as opções, listar prós e contras de cada, nomear o trade-off e recomendar com critério. Use pros and cons, advantage / disadvantage, on the other hand, versus e trade-off para estruturar. Avalie opções com comparativos: simpler, safer, faster, more maintainable, less risky (sem `more` antes de adjetivos curtos). Feche com I would go with... because... ou Given our constraints, we recommend... because.... O padrão completo é: `Option A is X, but Option B is Y. On the other hand, ... Given our constraints, I would go with...`.
Vocabulário
Palavras principais
There's a trade-off between latency and simplicity.
Há um trade-off entre latência e simplicidade.Polling is simpler to set up than WebSockets.
Polling é mais simples de configurar do que WebSockets.For a small team, polling is the safer choice.
Para um time pequeno, polling é a escolha mais segura.PostgreSQL is more maintainable for our use case.
PostgreSQL é mais fácil de manter para o nosso caso de uso.We are considering two approaches for the new feature.
Estamos considerando duas abordagens para a nova funcionalidade.'We have two options: extend the monolith or build a new service.'
'Temos duas opções: estender o monolito ou construir um serviço novo.'We are evaluating three alternatives for the data layer.
Estamos avaliando três alternativas para a camada de dados.Our recommendation is to start with the simpler option.
Nossa recomendação é começar com a opção mais simples.The main advantage of polling is its simplicity.
A principal vantagem do polling é a sua simplicidade.The main disadvantage of WebSockets is the server complexity.
A principal desvantagem dos WebSockets é a complexidade no servidor.We need to weigh the pros and cons before deciding.
Precisamos ponderar os prós e contras antes de decidir.Compared to MongoDB, PostgreSQL is safer for structured data.
Em comparação com o MongoDB, o PostgreSQL é mais seguro para dados estruturados.Polling is simpler. On the other hand, it adds network traffic.
Polling é mais simples. Por outro lado, ele adiciona tráfego de rede.We compared PostgreSQL vs. MongoDB for the new feature.
Comparamos PostgreSQL vs. MongoDB para a nova funcionalidade.Given the deadline, I would go with the simpler library.
Dado o prazo, eu escolheria a biblioteca mais simples.The downside of using a microservice is the operational overhead.
O lado negativo de usar um microsserviço é a sobrecarga operacional.The main concern is reliability, not sub-second latency.
A principal preocupação é a confiabilidade, não a latência abaixo de um segundo.História
História: Comparar alternativas técnicas
Nível: B1
História em inglês
The new feature
On Monday morning, Tom and Priya sat down to plan the next sprint. The product team wanted real-time order status updates on the customer dashboard. Tom said, "We have two options for this: WebSockets and short polling. Both could work." "Let's write a short doc comparing the pros and cons of each," Priya replied. They agreed to weigh the options together before the design review on Wednesday.
WebSockets: pros and cons
Tom started with WebSockets. "With WebSockets, the server keeps an open connection and pushes updates the moment they happen." "The main advantage is low latency. The customer sees the new status almost instantly." "On the other hand, the server has to hold many open connections at the same time." "That makes WebSockets harder to scale and more complex to debug for a small team." "The main concern is reliability. If one connection drops, we have to reconnect the customer."
Polling: pros and cons
Priya then described the polling approach. "With short polling, the client asks the server every five seconds. There is no open connection." "The upside is that it is much simpler to set up and easier to reason about." "It is also safer for a small team, because there is less infrastructure to operate." "The downside is that updates are never truly real-time, and we send more network traffic."
The recommendation
After listing the pros and cons, Tom and Priya stepped back and looked at the trade-off. "The trade-off is between real-time updates and simplicity," Tom said. "The main concern is reliability and team capacity, not sub-second latency." "Given our small team, I would go with polling for the first version," Priya said. "We can revisit WebSockets later if customers ask for sub-second updates." On balance, the pros of polling outweigh the cons for the team today.
Tradução linha por linha
| Inglês | Tradução |
|---|---|
| On Monday morning, Tom and Priya sat down to plan the next sprint. | Na segunda-feira de manhã, Tom e Priya se sentaram para planejar a próxima sprint. |
| The product team wanted real-time order status updates on the customer dashboard. | O time de produto queria atualizações de status do pedido em tempo real no painel do cliente. |
| Tom said, "We have two options for this: WebSockets and short polling. Both could work." | Tom disse: “Temos duas opções para isso: WebSockets e polling curto. As duas podem funcionar.” |
| "Let's write a short doc comparing the pros and cons of each," Priya replied. | “Vamos escrever um documento curto comparando os prós e contras de cada uma”, respondeu Priya. |
| They agreed to weigh the options together before the design review on Wednesday. | Eles concordaram em ponderar as opções juntos antes da revisão de design na quarta-feira. |
| Tom started with WebSockets. "With WebSockets, the server keeps an open connection and pushes updates the moment they happen." | Tom começou pelos WebSockets. “Com WebSockets, o servidor mantém uma conexão aberta e envia atualizações no momento em que elas acontecem.” |
| "The main advantage is low latency. The customer sees the new status almost instantly." | “A principal vantagem é a baixa latência. O cliente vê o novo status quase instantaneamente.” |
| "On the other hand, the server has to hold many open connections at the same time." | “Por outro lado, o servidor precisa manter muitas conexões abertas ao mesmo tempo.” |
| "That makes WebSockets harder to scale and more complex to debug for a small team." | “Isso torna os WebSockets mais difíceis de escalar e mais complexos de debugar para um time pequeno.” |
| "The main concern is reliability. If one connection drops, we have to reconnect the customer." | “A principal preocupação é a confiabilidade. Se uma conexão cai, precisamos reconectar o cliente.” |
| Priya then described the polling approach. | Priya então descreveu a abordagem de polling. |
| "With short polling, the client asks the server every five seconds. There is no open connection." | “Com polling curto, o cliente pergunta ao servidor a cada cinco segundos. Não há conexão aberta.” |
| "The upside is that it is much simpler to set up and easier to reason about." | “O lado positivo é que é muito mais simples de configurar e mais fácil de raciocinar.” |
| "It is also safer for a small team, because there is less infrastructure to operate." | “Também é mais seguro para um time pequeno, porque há menos infraestrutura para operar.” |
| "The downside is that updates are never truly real-time, and we send more network traffic." | “O lado negativo é que as atualizações nunca são realmente em tempo real, e enviamos mais tráfego de rede.” |
| After listing the pros and cons, Tom and Priya stepped back and looked at the trade-off. | Depois de listar os prós e contras, Tom e Priya recuaram e olharam para o trade-off. |
| "The trade-off is between real-time updates and simplicity," Tom said. | “O trade-off é entre atualizações em tempo real e simplicidade”, disse Tom. |
| "The main concern is reliability and team capacity, not sub-second latency." | “A principal preocupação é a confiabilidade e a capacidade do time, não a latência abaixo de um segundo.” |
| "Given our small team, I would go with polling for the first version," Priya said. | “Dado o nosso time pequeno, eu iria com polling na primeira versão”, disse Priya. |
| "We can revisit WebSockets later if customers ask for sub-second updates." | “Podemos revisitar WebSockets mais tarde, se os clientes pedirem atualizações abaixo de um segundo.” |
| On balance, the pros of polling outweigh the cons for the team today. | No fim das contas, os prós do polling superam os contras para o time hoje. |
Notas de vocabulário
- We have two options for this: WebSockets and short polling. = abertura clássica de uma comparação em design doc.
- the pros and cons of each = par fixo, sempre nesta ordem; 'of each' aponta para a opção avaliada.
- weigh the options together = verbo `weigh` ('ponderar') usado com `the options` ou `the pros and cons`.
- The main advantage is low latency. = padrão: `The main advantage of X is Y`.
- On the other hand, the server has to hold many open connections. = conector B1 para introduzir o lado oposto; sempre entre vírgulas.
- The downside is that updates are never truly real-time. = padrão: `The downside is that + frase completa`.
- The trade-off is between real-time updates and simplicity. = padrão B1 para nomear a compensação: `trade-off between X and Y`.
- Given our small team, I would go with polling = padrão de recomendação: `Given + restrição + I would go with + opção`.
- On balance, the pros of polling outweigh the cons = expressão para fechar a comparação: 'no conjunto, os prós superam os contras'.
Perguntas de compreensão
- What feature did the product team want for the customer dashboard?
- Which two options did Tom and Priya compare?
- What is the main advantage of WebSockets?
- What is the main concern with WebSockets for a small team?
- What is the upside of short polling?
- What is the downside of short polling?
- How did Tom and Priya name the trade-off?
- Which option did Priya recommend, and why?
- What did they decide to do about WebSockets in the future?
Prática com a história
- Reescreva nomeando o trade-off: WebSockets are real-time. Polling is simpler.
- Complete: On the ___ hand, polling adds more network traffic.
- Reescreva com `Given... I would go with...`: The team is small, so we recommend polling for v1.
- Traduza: Os prós do polling superam os contras no fim das contas.
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.