GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Prototypal inheritance by flaviohblima · Pull Request #230 · javascript-tutorial/pt.javascript.info

Conversation

@flaviohblima

@flaviohblima flaviohblima commented Oct 24, 2021

Copy link
Copy Markdown
Contributor

Prototypal inheritance

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@flaviohblima
Prototypal inheritance
cdfbd74
@javascript-translate-bot javascript-translate-bot added the review needed label Oct 24, 2021
@javascript-translate-bot
javascript-translate-bot requested a review from a team October 24, 2021 19:06
@javascript-translate-bot 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
@flaviohblima
FIX: Use tips/reviews of another PR to fix some issues.
ba63e6e
- Tasks 'importance';
- Trocar 'setar' por 'configurar';
- Translate strings in code;
@odsantos
Align lines with original
af54f5a
@odsantos
Align lines as original
df77cc5
odsantos
odsantos requested changes Dec 20, 2021
View reviewed changes

@odsantos odsantos left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/08-prototypes/01-prototype-inheritance/1-property-after-delete/task.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm/solution.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm/solution.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm/task.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread 1-js/08-prototypes/01-prototype-inheritance/3-proto-and-this/solution.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@javascript-translate-bot javascript-translate-bot removed the review needed label Dec 20, 2021
@javascript-translate-bot

javascript-translate-bot commented Dec 20, 2021

Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@javascript-translate-bot javascript-translate-bot added the changes requested label Dec 20, 2021
flaviohblima and others added 19 commits February 26, 2022 20:22
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/1-property-after-d…
ad9565b
…elete/task.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm…
8421ec7
…/solution.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm…
b9f7d08
…/solution.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm…
639b458
…/task.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/3-proto-and-this/s…
cf5852a
…olution.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/3-proto-and-this/s…
2e70145
…olution.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
b1febce
Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
c574482
Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
367c032
Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
768e03f
Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
b0ee5f6
Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/3-proto-and-this/t…
4cccda8
…ask.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/4-hamster-proto/so…
9bb0f1b
…lution.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/4-hamster-proto/so…
f619d4a
…lution.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/4-hamster-proto/so…
8ae513a
…lution.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/4-hamster-proto/ta…
584d0cd
…sk.md

Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
b2076f8
Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
b2fd68a
Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
9a93479
Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima @odsantos
Update 1-js/08-prototypes/01-prototype-inheritance/article.md
5413d85
Co-authored-by: Osvaldo Dias dos Santos <[email protected]>
@flaviohblima

flaviohblima commented Feb 26, 2022

Copy link
Copy Markdown
Contributor Author

/done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@javascript-translate-bot javascript-translate-bot added review needed and removed changes requested labels Feb 26, 2022
@javascript-translate-bot
javascript-translate-bot requested a review from a team February 26, 2022 23:31
@odsantos

odsantos commented Dec 11, 2022

Copy link
Copy Markdown
Contributor

Hi @flaviohblima ,

Still working in this one?
There is a conflict here.

Please, let me know if you haven't time and I might be able to resolve it.

Thanks,
Osvaldo.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@flaviohblima

flaviohblima commented Dec 13, 2022

Copy link
Copy Markdown
Contributor Author

Hi @odsantos ,

Sorry I could not resolve this pull request.
I might work in some translations soon.

In any case, feel free to resolve the conflicts and close it.

Team work is always quickier!

Thank you,
Flávio.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@odsantos

odsantos commented Dec 23, 2022

Copy link
Copy Markdown
Contributor

Hi @flaviohblima ,

I'll try to resolve the conflicts but keep it open.
Probably, it can be reviewed by others maintainers, as well, and get merged.

Thank you,
Osvaldo.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

odsantos added 2 commits December 23, 2022 21:30
@odsantos
Correct words spelling
7c49cf7
@odsantos
Merge branch 'master' into develop-prototypes
c7201ce
@nazarepiedady

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?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

peruibeloko
peruibeloko suggested changes Mar 6, 2024
View reviewed changes

@peruibeloko peruibeloko left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
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.

@peruibeloko peruibeloko Mar 6, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Na programação, nós sempre queremos extender algum comportamento.
Na programação, é comum querermos extender algum comportamento.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/08-prototypes/01-prototype-inheritance/1-property-after-delete/solution.md
Comment on lines +2 to +4
1. `true`, obtido de `rabbit`.
2. `null`, obtido de `animal`.
3. `undefined`, essa propriedade não existe mais.

@peruibeloko peruibeloko Mar 6, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. `true`, obtido de `rabbit`.
2. `null`, obtido de `animal`.
3. `undefined`, essa propriedade não existe mais.
1. `true`, obtido de `coelho`.
2. `null`, obtido de `animal`.
3. `undefined`, essa propriedade não existe mais.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/08-prototypes/01-prototype-inheritance/1-property-after-delete/task.md

@peruibeloko peruibeloko Mar 6, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Traduzir as variáveis

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm/solution.md

@peruibeloko peruibeloko Mar 6, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Traduzir o código

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm/task.md

@peruibeloko peruibeloko Mar 6, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Traduzir o código

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md
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

@peruibeloko peruibeloko Mar 6, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Traduzir o código

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md
The call `rabbit.sleep()` sets `this.isSleeping` on the `rabbit` object:
A chamada de `rabbit.sleep()` configura `this.isSleeping` no objeto `rabbit`:

```js run

@peruibeloko peruibeloko Mar 6, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Traduzir o resto do código

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md
For instance:
Por exemplo:

```js run

@peruibeloko peruibeloko Mar 6, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Traduzir o código

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md

```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."

@peruibeloko peruibeloko Mar 6, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```smart header="Quase todas as outras chaves/métodos *obtém-valor* ignoram propriedades herdadas."
```smart header="Quase todos os métodos que obtém valores a partir de chaves ignoram propriedades herdadas."

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/08-prototypes/01-prototype-inheritance/article.md
- 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).

@peruibeloko peruibeloko Mar 6, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Nós podemos usar `obj.__proto__` para acessá-lo (um histórico getter/setter, mas já existem alternativas, que veremos em breve).
- Nós podemos usar `obj.__proto__` para acessá-lo (um getter/setter mantido historicamente, mas já existem alternativas, que veremos em breve).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@javascript-translate-bot javascript-translate-bot removed the review needed label Mar 6, 2024
@javascript-translate-bot

javascript-translate-bot commented Mar 6, 2024

Copy link
Copy Markdown

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@javascript-translate-bot javascript-translate-bot added the changes requested label Mar 6, 2024
@nazarepiedady

nazarepiedady commented Mar 6, 2024

Copy link
Copy Markdown
Member

@peruibeloko, I was talking about to edit this pull request and approved if possible.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@peruibeloko

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@odsantos
Update translation
19f7f94
peruibeloko
peruibeloko approved these changes Nov 1, 2024
View reviewed changes
@javascript-translate-bot javascript-translate-bot added needs +1 and removed changes requested labels Nov 1, 2024
nazarepiedady
nazarepiedady approved these changes Nov 2, 2024
View reviewed changes
@nazarepiedady
nazarepiedady merged commit 218098a into javascript-tutorial:master Nov 2, 2024
@javascript-translate-bot

javascript-translate-bot commented Nov 2, 2024

Copy link
Copy Markdown

Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@odsantos odsantos odsantos requested changes
@nazarepiedady nazarepiedady nazarepiedady approved these changes
+1 more reviewer
@peruibeloko peruibeloko peruibeloko approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

needs +1

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@flaviohblima @javascript-translate-bot @odsantos @nazarepiedady @peruibeloko
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.