mirror of
https://github.com/kettanaito/naming-cheatsheet.git
synced 2025-08-09 06:45:00 +02:00
Update README.md
This commit is contained in:
committed by
GitHub
parent
9f545b757f
commit
c8133142a2
@ -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..." */
|
||||||
|
Reference in New Issue
Block a user