Translate 'Ninja code' page#34
Merged
jakubdrozdek merged 2 commits intomasterfrom Nov 12, 2019
Merged
Conversation
Contributor
Author
|
@sbielenica @mitroc Jest szansa, że to przejrzycie? Powinno się łatwiej sprawdzać, bo jest z jajem ;-) |
Contributor
|
@jakubdrozdek Mogę zerknąć w najbliższy weekend. |
sbielenica
reviewed
Nov 10, 2019
| 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? |
Contributor
There was a problem hiding this comment.
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. |
Contributor
There was a problem hiding this comment.
Tu chyba czegoś zabrakło: to tak nic innego jak licznik pętli ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.