Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Prototypal inheritance#230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nazarepiedady merged 27 commits intojavascript-tutorial:masterfromflaviohblima:develop-prototypes
Nov 2, 2024
Merged

Prototypal inheritance#230

nazarepiedady merged 27 commits intojavascript-tutorial:masterfromflaviohblima:develop-prototypes
Nov 2, 2024

Conversation

flaviohblima
Copy link
Contributor

Prototypal inheritance

flaviohblimaand others added3 commitsOctober 30, 2021 21:08
- Tasks 'importance';- Trocar 'setar' por 'configurar';- Translate strings in code;
Copy link
Contributor

@odsantosodsantos left a 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.

@javascript-translate-bot

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

flaviohblimaand others added19 commitsFebruary 26, 2022 20:22
…elete/task.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
…/solution.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
…/solution.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
…/task.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
…olution.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
…olution.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
…ask.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
…lution.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
…lution.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
…lution.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
…sk.mdCo-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
Co-authored-by: Osvaldo Dias dos Santos <osvaldo.msdsantos@yahoo.com>
@flaviohblima
Copy link
ContributorAuthor

/done

@odsantos
Copy link
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.

@flaviohblima
Copy link
ContributorAuthor

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.

@odsantos
Copy link
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.

@nazarepiedady
Copy link
Member

@peruibeloko,@jonnathan-ls, do you have time to see what is possible to do in relation to this pull request?

Copy link
Contributor

@peruibelokoperuibeloko left a 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

#Herança Prototipada

In programming, we often want to take something and extend it.
Na programação, nós sempre queremos extender algum comportamento.
Copy link
Contributor

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.

Comment on lines +2 to +4
1.`true`,obtido de`rabbit`.
2.`null`,obtido de`animal`.
3.`undefined`,essa propriedade não existe mais.
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

Traduzir as variáveis

Copy link
Contributor

Choose a reason for hiding this comment

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

Traduzir o código

Copy link
Contributor

Choose a reason for hiding this comment

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

Traduzir o código

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
Copy link
Contributor

Choose a reason for hiding this comment

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

Traduzir o código

The call`rabbit.sleep()`sets`this.isSleeping`on the`rabbit` object:
A chamada de`rabbit.sleep()`configura`this.isSleeping`no objeto`rabbit`:

```js run
Copy link
Contributor

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

For instance:
Por exemplo:

```js run
Copy link
Contributor

Choose a reason for hiding this comment

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

Traduzir o código


```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."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
```smart header="Quasetodas as outras chaves/métodos*obtém-valor* ignoram propriedades herdadas."
```smart header="Quasetodos osmétodosqueobtém valores a partir de chaves ignoram propriedades herdadas."

-If we call`obj.method()`,and the`method`is taken from theprototype,`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).
Copy link
Contributor

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 (umhistóricogetter/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).

@javascript-translate-bot

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

@nazarepiedady
Copy link
Member

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

@peruibeloko
Copy link
Contributor

@nazarepiedady I believe the repo is write protected, but it I'll see what I can do

@nazarepiedadynazarepiedady merged commit218098a intojavascript-tutorial:masterNov 2, 2024
1 check passed
@javascript-translate-bot

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

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

Reviewers

@odsantosodsantosodsantos requested changes

@nazarepiedadynazarepiedadynazarepiedady approved these changes

+1 more reviewer

@peruibelokoperuibelokoperuibeloko approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@flaviohblima@javascript-translate-bot@odsantos@nazarepiedady@peruibeloko

[8]ページ先頭

©2009-2025 Movatter.jp