From 891cc918a613bd58f55b441634723f9f3bc0b7bc Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 12 Jan 2017 17:11:27 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9504b922..dd1513bc 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # clean-code-javascript -## Table of Contents - 1. [Introduction](#introduction) +## Содержание + 1. [Введение](#introduction) 2. [Variables](#variables) 3. [Functions](#functions) 4. [Objects and Data Structures](#objects-and-data-structures) @@ -12,7 +12,7 @@ 9. [Formatting](#formatting) 10. [Comments](#comments) -## Introduction +## Введение ![Humorous image of software quality estimation as a count of how many expletives you shout when reading code](http://www.osnews.com/images/comics/wtfm.jpg) From 3ba1d59e579f033f1d189c465a9919f94c4532be Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 12 Jan 2017 17:14:40 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index dd1513bc..815b1cb0 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # clean-code-javascript ## Содержание - 1. [Введение](#introduction) - 2. [Variables](#variables) + 1. [Введение](#Введение) + 2. [Переменные](#Переменные) 3. [Functions](#functions) 4. [Objects and Data Structures](#objects-and-data-structures) 5. [Classes](#classes) @@ -39,15 +39,15 @@ shaped into its final form. Finally, we chisel away the imperfections when we review it with our peers. Don't beat yourself up for first drafts that need improvement. Beat up the code instead! -## **Variables** -### Use meaningful and pronounceable variable names +## **Переменные** +### Используйте значащие и произносимые имена переменных -**Bad:** +**Плохо:** ```javascript const yyyymmdstr = moment().format('YYYY/MM/DD'); ``` -**Good**: +**Хорошо**: ```javascript const yearMonthDay = moment().format('YYYY/MM/DD'); ``` @@ -55,14 +55,14 @@ const yearMonthDay = moment().format('YYYY/MM/DD'); ### Use the same vocabulary for the same type of variable -**Bad:** +**Плохо:** ```javascript getUserInfo(); getClientData(); getCustomerRecord(); ``` -**Good**: +**Хорошо**: ```javascript getUser(); ```