Created
October 30, 2020 11:34
-
-
Save alexbaumgertner/0f2a453c9c713513d367796cc35dd23a to your computer and use it in GitHub Desktop.
Практики, основанные на личном опыте. Обновляются и дополняются. Комментарии приветствуются!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 1) Называть похожие поля у _разных_ сущностей по-разному: | |
*/ | |
const someItem = { isItemComplete: true } | |
const someItemOfAthotherClass = { isItemOfAthotherClassmComplete: true } | |
/** | |
* Нужно, чтобы не было путаницы, если код модуля > 1k sloc | |
* в поиске по коду и отладки | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment