Prototypal inheritance by flaviohblima · Pull Request #230 · javascript-tutorial/pt.javascript.info
Repository navigation
Prototypal inheritance - #230
Merged
nazarepiedady merged 27 commits into javascript-tutorial:master from flaviohblima:develop-prototypes Nov 2, 2024
Merged
Prototypal inheritance #230 nazarepiedady merged 27 commits into javascript-tutorial:master from flaviohblima:develop-prototypes
Conversation
flaviohblima commented Oct 24, 2021
Copy link Copy Markdown
Contributor
Prototypal inheritance
Prototypal inheritance
cdfbd74
javascript-translate-bot
added
the
review needed
label
Oct 24, 2021
javascript-translate-bot
requested a review
from a team
October 24, 2021 19:06
javascript-translate-bot
mentioned this pull request
Oct 24, 2021
Portuguese Translation Progress
#1
Open
flaviohblima
and others
added 3 commits
October 30, 2021 21:08
FIX: Use tips/reviews of another PR to fix some issues.
ba63e6e
- Tasks 'importance'; - Trocar 'setar' por 'configurar'; - Translate strings in code;
Align lines with original
af54f5a
Align lines as original
df77cc5
odsantos
requested changes
Dec 20, 2021
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 .
Hello @flaviohblima ,
Here is a review.
Please, feel free to leave a note where you might disagree.
Thank you,
Osvaldo.
javascript-translate-bot commented Dec 20, 2021
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
Update 1-js/08-prototypes/01-prototype-inheritance/1-property-after-d...
ad9565b
...elete/task.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm...
8421ec7
.../solution.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm...
b9f7d08
.../solution.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm...
639b458
.../task.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/3-proto-and-this/s...
cf5852a
...olution.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/3-proto-and-this/s...
2e70145
...olution.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
b1febce
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
c574482
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
367c032
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
768e03f
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
b0ee5f6
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/3-proto-and-this/t...
4cccda8
...ask.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/4-hamster-proto/so...
9bb0f1b
...lution.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/4-hamster-proto/so...
f619d4a
...lution.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/4-hamster-proto/so...
8ae513a
...lution.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/4-hamster-proto/ta...
584d0cd
...sk.md Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
b2076f8
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
b2fd68a
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
9a93479
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
5413d85
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
flaviohblima commented Feb 26, 2022
Copy link Copy Markdown
Contributor
Author
|
/done |
odsantos commented Dec 11, 2022
Copy link Copy Markdown
Contributor
|
Hi @flaviohblima , Still working in this one? Please, let me know if you haven't time and I might be able to resolve it. Thanks, |
flaviohblima commented Dec 13, 2022
Copy link Copy Markdown
Contributor
Author
|
Hi @odsantos , Sorry I could not resolve this pull request. In any case, feel free to resolve the conflicts and close it. Team work is always quickier! Thank you, |
odsantos commented Dec 23, 2022
Copy link Copy Markdown
Contributor
|
Hi @flaviohblima , I'll try to resolve the conflicts but keep it open. Thank you, |
Correct words spelling
7c49cf7
Merge branch 'master' into develop-prototypes
c7201ce
nazarepiedady commented Mar 1, 2024
Copy link Copy Markdown
Member
|
@peruibeloko , @jonnathan-ls , do you have time to see what is possible to do in relation to this pull request? |
View reviewed changes
peruibeloko 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 .
Parece bastante coisa, mas na verdade são só alterações pequenas e pedidos de tradução do código.
Acredito que seja importante traduzir os nomes usados nos exemplos do artigo, já que o tópico pode ser de difícil compreensão para iniciantes
Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md| # Herança Prototipada | ||
|
|
||
| In programming, we often want to take something and extend it . | ||
| Na programação, nós sempre queremos extender algum comportamento . |
| 1. `true`, obtido de `rabbit`. | ||
| 2. `null`, obtido de `animal`. | ||
| 3. `undefined`, essa propriedade não existe mais . |
| For that reason `admin.fullName` works correctly in the code below : | ||
| Por essa razão, `admin.fullName` funciona corretamente no código abaixo : | ||
|
|
||
| ```js run |
| The call `rabbit.sleep()` sets `this.isSleeping` on the `rabbit` object : | ||
| A chamada de `rabbit.sleep()` configura `this.isSleeping` no objeto `rabbit`: | ||
|
|
||
| ```js run |
| For instance : | ||
| Por exemplo : | ||
|
|
||
| ```js run |
|
|
||
| ```smart header=" Almost all other key/value-getting methods ignore inherited properties " | ||
| Almost all other key/value-getting methods, such as `Object.keys`, `Object.values` and so on ignore inherited properties . | ||
| ```smart header=" Quase todas as outras chaves/métodos *obtém-valor* ignoram propriedades herdadas. " |
| - If we call `obj.method()`, and the `method` is taken from the prototype, `this` still references `obj`. So methods always work with the current object even if they are inherited . | ||
| - The `for..in` loop iterates over both its own and its inherited properties. All other key/value-getting methods only operate on the object itself . | ||
| - No Javascript, todos os objetos possuem uma propriedade `[[Prototype]]` escondida que ou é um objeto ou é `null`. | ||
| - Nós podemos usar `obj.__proto__` para acessá-lo (um histórico getter/setter, mas já existem alternativas, que veremos em breve ). |
javascript-translate-bot commented Mar 6, 2024
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
nazarepiedady commented Mar 6, 2024
Copy link Copy Markdown
Member
|
@peruibeloko , I was talking about to edit this pull request and approved if possible. |
peruibeloko commented Mar 6, 2024
Copy link Copy Markdown
Contributor
|
@nazarepiedady I believe the repo is write protected, but it I'll see what I can do |
Update translation
19f7f94
peruibeloko
approved these changes
Nov 1, 2024
View reviewed changes
javascript-translate-bot added needs +1 and removed changes requested labels Nov 1, 2024 nazarepiedady approved these changes Nov 2, 2024
View reviewed changes
nazarepiedady merged commit
218098a
into
javascript-tutorial : master
Nov 2, 2024
javascript-translate-bot commented Nov 2, 2024
Copy link Copy Markdown
|
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |