GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Basic operators, math by betofc89 · Pull Request #247 · javascript-tutorial/pt.javascript.info Conversation
|
|
Please make the requested changes. After it, add a comment "/done". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Please make the requested changes. After it, add a comment "/done". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
@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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A space was lacking between two letters.
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.
This reverts commit ad5cdf0.
The `task.md` and `solution.md` files were translated into Portuguese for all challenges.
|
/done |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Please make the requested changes. After it, add a comment "/done". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
@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) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The keyword "importance" in the exercises should not be translated. Therefore, I'm undoing the translation of these keywords.
|
/done |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 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. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| 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. | |
| 1. A adição de uma string `"" + 1` converte `1` para uma string: `"" + 1 = "1"`, e quando temos `"1" + 0`, a mesma regra é aplicada. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 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`. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| 2. A subtração `-` (como a maioria das operações matemáticas) apenas funciona com números, esta converte uma string vazia `""` para `0`. | |
| 2. A subtração `-` (como a maioria das operações matemáticas) apenas funciona com números, e converte uma string vazia `""` para `0`. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 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. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| 3. A adição com uma string anexa o número `5` à string. | |
| 3. A adição a uma string anexa o número `5` à string. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ``` | ||
|
|
||
| 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 `+`. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| 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 da adição (`+`). Por exemplo, usando `Number()` ou precedendo-os com `+`. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 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`: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Por exemplo, logo antes de `prompt`: | |
| Por exemplo, logo antes do `prompt`: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 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 `++/--`. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Existe alguma diferença? Sim, mas só podemos vê-la se usarmos o valor retornado de `++/--`. | |
| Existe alguma diferença? Sim, mas só podemos vê-la se usarmos o valor retornado da operação `++/--`. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ``` | ||
|
|
||
| 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. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Embora tecnicamente correta, tal notação normalmente torna o código menos legível. Uma linha faz várias coisas -- nada bom. | |
| Embora tecnicamente correta, tal notação normalmente torna o código menos legível. Numa linha faz-se várias coisas -- nada bom. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - 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. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| 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. | |
| Estes operadores são muito raramente usados, e acontece quando nós precisamos mexer com números no nível mais baixo (bit a bit). Nós não precisaremos destes operadores dentro em breve, 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 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. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Às vezes, as pessoas o usam e construtos mais complexos para pôr várias ações em uma linha. | |
| Às vezes, as pessoas o usam em construções mais complexas para pôr várias ações em uma linha. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ``` | ||
|
|
||
| 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. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| 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. | |
| 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please make the requested changes. After it, add a comment "/done". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @betofc89 , I updated files in this branch according to the English version. Thanks, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@odsantos since I don't have access to Beto's |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/done |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, please @peruibeloko could you open it? Thanks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.