Skip to content

Translate 'Ninja code' page#34

Merged
jakubdrozdek merged 2 commits intomasterfrom
ninja-code
Nov 12, 2019
Merged

Translate 'Ninja code' page#34
jakubdrozdek merged 2 commits intomasterfrom
ninja-code

Conversation

@jakubdrozdek
Copy link
Copy Markdown
Contributor

No description provided.

@jakubdrozdek
Copy link
Copy Markdown
Contributor Author

jakubdrozdek commented Nov 4, 2019

@sbielenica @mitroc Jest szansa, że to przejrzycie? Powinno się łatwiej sprawdzać, bo jest z jajem ;-)

@sbielenica
Copy link
Copy Markdown
Contributor

@jakubdrozdek Mogę zerknąć w najbliższy weekend.

Początkujący programiści czasem używają ich lepiej niż ninja koderzy.

Read them carefully and find out who you are -- a ninja, a novice, or maybe a code reviewer?
Przeczytaj je uważnie i dowiedz się, kim jesteś: programistą ninja, nowicjuszem czy guru sprawdzania kodu?
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.

Być może lepiej trzymać się jednej wersji - przetłumaczonego code review lub nieprzetłumaczonego?

... Jest jednak pewien wyjątek. Prawdziwy ninja nigdy nie użyje `i` jako licznika pętli `"for"`. Wszędzie tylko nie tam! Rozejrzyj się, jest wiele dużo bardziej egzotycznych liter. Na przykład `x` lub `y`.

An exotic variable as a loop counter is especially cool if the loop body takes 1-2 pages (make it longer if you can). Then if someone looks deep inside the loop, they won't be able to quickly figure out that the variable named `x` is the loop counter.
Taka egzotyczna nazwa licznika pętli jest tym bardziej fajowa, gdy sama pętla zajmuje 1-2 strony (albo i więcej, jeśli dasz radę). Wtedy taki delikwent dogłębnie analizujący pętlę nie będzie w stanie w prosty sposób domyślić się, że `x` to tak nic innego jak licznik pętli.
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.

Tu chyba czegoś zabrakło: to tak nic innego jak licznik pętli ?

@jakubdrozdek jakubdrozdek merged commit 0aff418 into master Nov 12, 2019
@jakubdrozdek jakubdrozdek deleted the ninja-code branch November 12, 2019 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants