You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Although these suggestions can be applied to any programming language, I will us
26
26
27
27
## Naming convention
28
28
29
-
Pick **one** naming convention and follow it. It may be `cammelCase`, or `snake_case`, or anyhow else, it does not matter. What matters is for it to remain consistent.
29
+
Pick **one** naming convention and follow it. It may be `camelCase`, or `snake_case`, or anyhow else, it does not matter. What matters is for it to remain consistent.
30
30
31
31
```js
32
32
/* Bad */
@@ -88,7 +88,7 @@ class MenuItem {
88
88
}
89
89
```
90
90
91
-
## Reflect expected result
91
+
## Reflect the expected result
92
92
93
93
A name should reflect the expected result.
94
94
@@ -123,7 +123,7 @@ Take a look at how this pattern may be applied in the table below.
> **Note:** The order of context affects the meaning of a variable. For example, `shouldUpdateComponent` means _you_ are about to update a component, while `shouldComponentUpdate` tells you that _component_ will update on itself, and you are but controlling whether it should do that right now.
126
+
> **Note:** The order of context affects the meaning of a variable. For example, `shouldUpdateComponent` means _you_ are about to update a component, while `shouldComponentUpdate` tells you that _component_ will update on itself, and you are but controlling when it should be updated.
127
127
> In other words, **high context emphasizes the meaning of a variable**.
128
128
129
129
---
@@ -179,7 +179,7 @@ console.log(fruits) // 5
179
179
180
180
### `fetch`
181
181
182
-
Requests for a data, which takes time (i.e. async request).
182
+
Request for some data, which takes some indeterminate time (i.e. async request).
Completely erazes something from the realms of existence.
209
+
Completely erases something from the realms of existence.
210
210
211
211
Imagine you are a content editor, and there is that notorious post you wish to get rid of. Once you clicked a shiny "Delete post" button, the CMS performed a `deletePost` action, **not**`removePost`.
212
212
@@ -309,11 +309,11 @@ function shouldUpdateUrl(url, expectedUrl) {
309
309
310
310
### `min`/`max`
311
311
312
-
Represent minimum or maximum value. Used when describing boundaries or limits.
312
+
Represents a minimum or maximum value. Used when describing boundaries or limits.
0 commit comments