diff --git a/README.md b/README.md index 9504b922..815b1cb0 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # clean-code-javascript -## Table of Contents - 1. [Introduction](#introduction) - 2. [Variables](#variables) +## Содержание + 1. [Введение](#Введение) + 2. [Переменные](#Переменные) 3. [Functions](#functions) 4. [Objects and Data Structures](#objects-and-data-structures) 5. [Classes](#classes) @@ -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) @@ -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(); ```