From 69bd4b5f3c7360d5012ffab6d40c1e12b4f3c46a Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Thu, 8 Nov 2018 01:19:54 +0300 Subject: [PATCH] Update article.md --- 1-js/03-code-quality/04-ninja-code/article.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ac26357c..b34baf76 100644 --- a/1-js/03-code-quality/04-ninja-code/article.md +++ b/1-js/03-code-quality/04-ninja-code/article.md @@ -171,6 +171,8 @@ Let everyone see how magnificent your entities are! Names like `superElement`, ` Indeed, from one hand, something is written: `super..`, `mega..`, `nice..` But from the other hand -- that brings no details. A reader may decide to look for a hidden meaning and meditate for an hour or two. + + ## Overlap outer variables ```quote author="Guan Yin Zi" @@ -204,7 +206,7 @@ There are functions that look like they don't change anything. Like `isReady()`, **A really beautiful trick is to add a "useful" action to them, besides the main task.** -The expression of dazed surprise on the face of your colleague when they see a function named `is..`, `check..` or `find...` changing something -- will definitely broaden your boundaries of reason. +An expression of dazed surprise on the face of your colleague when they see a function named `is..`, `check..` or `find...` changing something -- will definitely broaden your boundaries of reason. **Another way to surprise is to return a non-standard result.**