File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# clean-code-javascript
22
33## Содержание
4- 1 . [ Введение] ( #introduction )
5- 2 . [ Variables ] ( #variables )
4+ 1 . [ Введение] ( #Введение )
5+ 2 . [ Переменные ] ( #Переменные )
66 3 . [ Functions] ( #functions )
77 4 . [ Objects and Data Structures] ( #objects-and-data-structures )
88 5 . [ Classes] ( #classes )
@@ -39,30 +39,30 @@ shaped into its final form. Finally, we chisel away the imperfections when
3939we review it with our peers. Don't beat yourself up for first drafts that need
4040improvement. Beat up the code instead!
4141
42- ## ** Variables **
43- ### Use meaningful and pronounceable variable names
42+ ## ** Переменные **
43+ ### Используйте значащие и произносимые имена переменных
4444
45- ** Bad :**
45+ ** Плохо :**
4646``` javascript
4747const yyyymmdstr = moment ().format (' YYYY/MM/DD' );
4848```
4949
50- ** Good ** :
50+ ** Хорошо ** :
5151``` javascript
5252const yearMonthDay = moment ().format (' YYYY/MM/DD' );
5353```
5454** [ ⬆ back to top] ( #table-of-contents ) **
5555
5656### Use the same vocabulary for the same type of variable
5757
58- ** Bad :**
58+ ** Плохо :**
5959``` javascript
6060getUserInfo ();
6161getClientData ();
6262getCustomerRecord ();
6363```
6464
65- ** Good ** :
65+ ** Хорошо ** :
6666``` javascript
6767getUser ();
6868```
You can’t perform that action at this time.
0 commit comments