Basic operators, math by betofc89 · Pull Request #247 · javascript-tutorial/pt.javascript.info
Repository navigation
Basic operators, math - #247
Merged
nazarepiedady merged 7 commits into javascript-tutorial:master from betofc89:master Jan 7, 2024
Merged
Basic operators, math #247 nazarepiedady merged 7 commits into javascript-tutorial:master from betofc89:master
Conversation
betofc89 commented Aug 12, 2022 · edited Loading
Copy link Copy Markdown
Contributor
Full translation of the section "Basic operators, math" to portuguese.
Translation of whole section
161d378
Full translation of the section "Basic operators, math" to brazilian portuguese.javascript-translate-bot added the review needed label Aug 12, 2022 javascript-translate-bot requested a review from a team August 12, 2022 14:23
CLAassistant commented Aug 12, 2022 · edited Loading
Copy link Copy Markdown
|
|
Substituição por palavra mais precisa
ad5cdf0
No original em inglês é dito que "variables are not bound to any of them", se referindo ao fato de que as variáveis não estão limitadas (ou restritas) a nenhum data type. Acredito que o termo "vinculadas" não traduza tão claramente esta ideia. Acredito que a palavra "vinculada" seja muito ampla neste contexto e que a mesma deveria ser substituída por "restritas" ou "limitadas". Por exemplo: suponha que Mário seja filho de Fabiana. Se nós dissermos que Mário está vinculado à Fabiana, estaremos certos, porque uma relação parental obviamente se refere a um vínculo. Mas se nós dissermos que Mário é *filho* de Fabiana, estaremos sendo ainda mais precisos, deixando pouco espaço para ambiguidades, já que *filho* traz uma ideia ainda mais específica. Se nós dissermos apenas que Mário possui um vínculo com Fabiana nós estaremos dando margem para alguém achar que Mário pode ser até mesmo o chefe de Fabiana. Se, porém, dissermos que Mário é *filho* de Fabiana, nós estaremos reduzindo o escopo dos possíveis vínculos, deixando tudo mais claro e preciso.jonnathan-ls requested changes Aug 13, 2022
View reviewed changes
jonnathan-ls left a comment · edited Loading
Copy link Copy Markdown
Contributor
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
@betofc89 , obrigado pela contribuição ❤️.
Segue minha revisão 😀.
javascript-translate-bot removed the review needed label Aug 13, 2022javascript-translate-bot commented Aug 13, 2022
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
View reviewed changes
jonnathan-ls left a comment
Copy link Copy Markdown
Contributor
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
Alteração em artigo diferente do propósito deste PR.
javascript-translate-bot commented Aug 13, 2022
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
betofc89 commented Aug 13, 2022 · edited Loading
Copy link Copy Markdown
Contributor
Author
@jonnathan-ls , isto sim é uma revisão de altíssimo nível! Muito obrigado mesmo pelas observações, correções e sugestões. Sinto que vou melhorar o meu português com as suas ótimas observações! Vou fazer as mudanças sugeridas por você. Eu confesso que sou novo no GitHub e decidi contribuir com esta tradução até mesmo como forma de eu entender melhor GitHub/Git. Eu sempre tive vontade de colaborar em algum projeto open source, e achei que este aqui seria um excelente começo. Sobre a alteração de outro artigo fora de contextoEu reverti aqui Revert "Substituição por palavra mais precisa" esta sugestão que fiz. Por eu ser inexperiente com GitHub é que, por exemplo, a sugestão de alteração que fiz para o |
Typo-fix: space inserted between letters
4e7ed7f
A space was lacking between two letters.
Grammatical improvements
b3c65d6
The grammatical improvements proposed by @jonnathan-ls have been applied. They mainly consisted of the correct use of commas. There were also two small replacements of words.
Revert "Substituição por palavra mais precisa"
5d1c221
This reverts commit ad5cdf0.
Translation of task.md and solution.md files
93812d7
The `task.md` and `solution.md` files were translated into Portuguese for all challenges.
betofc89 commented Aug 13, 2022
Copy link Copy Markdown
Contributor
Author
|
/done |
View reviewed changes
jonnathan-ls left a comment · edited Loading
Copy link Copy Markdown
Contributor
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
@betofc89 Nova revisão após tradução dos exercícios.
javascript-translate-bot removed the review needed label Aug 16, 2022javascript-translate-bot commented Aug 16, 2022
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
jonnathan-ls commented Aug 16, 2022 · edited Loading
Copy link Copy Markdown
Contributor
@betofc89 Obrigado pela apreciação, é um prazer receber feedback ❤️
Muito bom, está certíssimo. 🔝 Não faz tanto tempo que passei a contribuir com a tradução deste repositório, pretendo rever conceitos em JavaScript e me aprofundar mais na linguagem. Como gostei bastante da plataforma, decidi contribuir traduzindo, e acabei ingressando como revisor também.
Pertinente a comentário e a pergunta ... está certo em sua conclusão, isto por que está trabalhando direto na master e qualquer alteração fará parte do fluxo de desenvolvimento que já está realizando. Para gerenciar melhor o trabalho recomendo seguir algum paradigma de fluxo de desenvolvimento, comentei mais detalhadamente sobre isso aqui: #247 (comment) |
Undoing keyword translation for the exercises
b97f712
The keyword "importance" in the exercises should not be translated. Therefore, I'm undoing the translation of these keywords.
betofc89 commented Aug 25, 2022
Copy link Copy Markdown
Contributor
Author
|
/done |
View reviewed changes
javascript-translate-bot added needs +1 and removed review needed labels Aug 31, 2022
jonnathan-ls commented Aug 31, 2022
Copy link Copy Markdown
Contributor
|
@betofc89 Obrigado pela correção, revisão aprovada ... Para aprovação de mesclagem, é necessário mais um revisor... com aprovação de um segundo avaliador a PR será aceita. |
View reviewed changes
odsantos left a comment
Copy link Copy Markdown
Contributor
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
Hi, Please be free to tell where you disagree. Thanks, Osvaldo.
Comment thread 1-js/02-first-steps/08-operators/3-primitive-conversions-questions/solution.md| 5. `null` becomes `0` after the numeric conversion . | ||
| 6. `undefined` becomes `NaN` after the numeric conversion . | ||
| 7. Space characters, are trimmed off string start and end when a string is converted to a number. Here the whole string consists of space characters, such as `\t`, `\n` and a "regular" space between them. So, similarly to an empty string , it becomes `0`. | ||
| 1. A adição com uma string `"" + 1` converte `1` para uma string: `"" + 1 = "1"`, e então nós temos `"1" + 0`, a mesma regra é aplicada . |
| 6. `undefined` becomes `NaN` after the numeric conversion . | ||
| 7. Space characters, are trimmed off string start and end when a string is converted to a number. Here the whole string consists of space characters, such as `\t`, `\n` and a "regular" space between them. So, similarly to an empty string , it becomes `0`. | ||
| 1. A adição com uma string `"" + 1` converte `1` para uma string: `"" + 1 = "1"`, e então nós temos `"1" + 0`, a mesma regra é aplicada . | ||
| 2. A subtração `-` ( como a maioria das operações matemáticas) apenas funciona com números, esta converte uma string vazia `""` para `0`. |
| 7. Space characters, are trimmed off string start and end when a string is converted to a number. Here the whole string consists of space characters, such as `\t`, `\n` and a "regular" space between them. So, similarly to an empty string , it becomes `0`. | ||
| 1. A adição com uma string `"" + 1` converte `1` para uma string: `"" + 1 = "1"`, e então nós temos `"1" + 0`, a mesma regra é aplicada . | ||
| 2. A subtração `-` ( como a maioria das operações matemáticas) apenas funciona com números, esta converte uma string vazia `""` para `0`. | ||
| 3. A adição com uma string anexa o número `5` à string. |
| ``` | ||
|
|
||
| What we should do is to convert strings to numbers before `+`. For example, using `Number()` or prepending them with `+`. | ||
| O que nós devemos fazer é converter strings em números antes do `+`. Por exemplo, usando `Number()` ou precedendo-os com `+`. |
| O que nós devemos fazer é converter strings em números antes do `+`. Por exemplo, usando `Number()` ou precedendo-os com `+`. | ||
|
|
||
| For example, right before `prompt`: | ||
| Por exemplo, logo antes de `prompt`: |
| Ambas as declarações fazem a mesma coisa: aumentam o `counter` em `1`. | ||
|
|
||
| Is there any difference? Yes, but we can only see it if we use the returned value of `++/--`. | ||
| Existe alguma diferença? Sim, mas só podemos vê-la se usarmos o valor retornado de `++/--`. |
| ``` | ||
|
|
||
| Though technically okay, such notation usually makes code less readable. One line does multiple things -- not good . | ||
| Embora tecnicamente correta, tal notação normalmente torna o código menos legível. Uma linha faz várias coisas -- nada bom . |
| - ZERO-FILL RIGHT SHIFT ( `>>>` ) | ||
|
|
||
| These operators are used very rarely, when we need to fiddle with numbers on the very lowest (bitwise) level. We won't need these operators any time soon, as web development has little use of them, but in some special areas, such as cryptography, they are useful. You can read the [Bitwise Operators ](https://developer.mozilla.org/ en-US /docs/Web/JavaScript/Guide/Expressions_and_Operators# Bitwise) chapter on MDN when a need arises . | ||
| Estes operadores são muito raramente usados, quando nós precisamos mexer com números no nível mais baixo (bit a bit). Nós não precisaremos destes operadores em nenhum momento, já que desenvolvimento web faz pouco uso deles, mas em algumas áreas específicas, como em criptografia, eles são úteis. Você pode ler o capítulo [Operadores bit a bit ](https://developer.mozilla.org/ pt-BR /docs/Web/JavaScript/Guide/Expressions_and_Operators# operadores_bit_a_bit) na MDN quando surgir a necessidade . |
| Por que precisamos de um operador que descarta tudo exceto a última expressão ? | ||
|
|
||
| Sometimes, people use it in more complex constructs to put several actions in one line . | ||
| Às vezes, as pessoas o usam e construtos mais complexos para pôr várias ações em uma linha . |
| ``` | ||
|
|
||
| Such tricks are used in many JavaScript frameworks . That's why we're mentioning them. But usually they don't improve code readability so we should think well before using them . | ||
| Tais truques são usados em muitos frameworks JavaScript. É por isto que nós os estamos mencionando. Mas geralmente eles não melhoram a legibilidade do código de modo que nós precisamos pensar bem antes de usá-los . |
javascript-translate-bot commented Dec 5, 2022
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
odsantos commented Dec 15, 2022
Copy link Copy Markdown
Contributor
|
Hi @betofc89 , I updated files in this branch according to the English version. Thanks, |
peruibeloko commented Jan 2, 2024 · edited Loading
Copy link Copy Markdown
Contributor
|
@odsantos since I don't have access to Beto's |
peruibeloko commented Jan 2, 2024
Copy link Copy Markdown
Contributor
|
/done |
odsantos commented Jan 3, 2024
Copy link Copy Markdown
Contributor
Yes, please @peruibeloko could you open it? Thanks. |
peruibeloko commented Jan 3, 2024
Copy link Copy Markdown
Contributor
c3d9194
into
javascript-tutorial : master
Jan 7, 2024
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment