From 3aa3b6c4c2731065f7339f0bf79024d3fd1827d2 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Wed, 20 Dec 2017 11:31:12 +0100 Subject: [PATCH] Prefixes: Add "prev" and "next" --- README.md | 61 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 9586859..170b60b 100644 --- a/README.md +++ b/README.md @@ -40,14 +40,14 @@ const shouldDisplayPagination = (postsCount > 10); * 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 class MenuItem { - /* Method name duplicates the context it is in "...MenuItem..." */ + /* Method name duplicates the context it is in (which is "MenuItem") */ handleMenuItemClick = (event) => { ... } /* This way it reads as MenuItem.handleClick() */ handleClick = (event) => { ... } } ``` -* Name should reflect expected result: +* Name should reflect the expected result: ```js /* Bad */ const isEnabled = (itemsCount > 3); @@ -60,12 +60,10 @@ return (