Update README.md

This commit is contained in:
Artem Zakharchenko
2017-06-30 10:29:50 +02:00
committed by GitHub
parent 9f545b757f
commit c8133142a2

View File

@ -16,7 +16,7 @@ const isPaginatable = (a > 10); // "Paginatable" sounds extremely unnatural
const postsCount = 5; const postsCount = 5;
const shouldDisplayPagination = (postsCount > 10); const shouldDisplayPagination = (postsCount > 10);
``` ```
* Name should not duplicate the context when the latter is known and when removing the context from name does not decrease the redability: * Name should not duplicate the context when the latter is known, and when removing the context from the name does not decrease its readability:
```js ```js
class MenuItem { class MenuItem {
/* Method name duplicates the context it is in "...MenuItem..." */ /* Method name duplicates the context it is in "...MenuItem..." */