From da0a2a2ebec670d374afbe379a87e1ff6980a1a7 Mon Sep 17 00:00:00 2001 From: Nadia Ridko Date: Fri, 12 Jan 2018 11:14:24 +0200 Subject: [PATCH] Add summary --- README.md | 39 +++++++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5ad554c..8d68918 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,25 @@ # Naming cheatsheet Naming things is hard. Let's make it easier. +## Summary +* [Guidelines](#guidelines) +* [HC/LC Pattern](#hclc-pattern) +* **[Actions](#actions)** + * [get](#get) + * [fetch](#fetch) + * [set](#set) + * [reset](#reset) + * [remove](#remove) + * [delete](#delete) + * [compose](#compose) + * [handle](#handle) +* **[Prefixes](#prefixes)** + * [is](#is) + * [has](#has) + * [should](#should) + * [min/max](#minmax) + * [prev/next](#prevnext) + ## Guidelines * Pick **one** naming convention and follow it. Whether it is `likeThis`, or `like_this`, or anyhow else, it does not matter. What matters is consistency in your work. @@ -196,16 +215,6 @@ if (isBlue && isPresent) { } ``` -#### `min`/`max` -Represent minimum or maximum value. Handy when describing boundaries or allowed limits. - -```js -function PostsList() { - this.minPosts = 3; - this.maxPosts = 10; -} -``` - #### `has` Describes whether the current context possesses a certain value or state. @@ -229,6 +238,16 @@ function shouldUpdateUrl(url) { } ``` +#### `min`/`max` +Represent minimum or maximum value. Handy when describing boundaries or allowed limits. + +```js +function PostsList() { + this.minPosts = 3; + this.maxPosts = 10; +} +``` + #### `prev`/`next` Indicate the previous and the next state of the variable in the current context. Useful for describing a state mutation.