From 884c21152336e2b02d9259b7da1c2b5e45aa767d Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Thu, 8 Nov 2018 01:11:14 +0300 Subject: [PATCH] Update article.md --- 1-js/03-code-quality/04-ninja-code/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/03-code-quality/04-ninja-code/article.md b/1-js/03-code-quality/04-ninja-code/article.md index 05d4f3fe..188da76c 100644 --- a/1-js/03-code-quality/04-ninja-code/article.md +++ b/1-js/03-code-quality/04-ninja-code/article.md @@ -5,7 +5,7 @@ Learning without thought is labor lost; thought without learning is perilous. ``` -Programmer ninjas of the past used these tricks to make sharpen the mind of code maintainers. +Programmer ninjas of the past used these tricks to sharpen the mind of code maintainers. Code review gurus look for them in test tasks. @@ -32,7 +32,7 @@ For instance, take a look at this ternary operator `'?'`: i = i ? i < 0 ? Math.max(0, len + i) : i : 0; ``` -Cool, right? If you write like that, the developer who comes across this line and tries to understand what is the value of `i` is going to have a merry time. Then come to you, seeking for an answer. +Cool, right? If you write like that, a developer who comes across this line and tries to understand what is the value of `i` is going to have a merry time. Then come to you, seeking for an answer. Tell them that shorter is always better. Initiate them into the paths of ninja.