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
Naming things is hard. This sheet attempts to make it easier.
10
24
11
25
Although these suggestions can be applied to any programming language, I will use JavaScript to illustrate them in practice.
@@ -250,7 +264,7 @@ function getRecentPosts(posts) {
250
264
251
265
> Some language-specific assumptions may allow omitting the context. For example, in JavaScript, it's common that `filter` operates on Array. Adding explicit `filterArray` would be unnecessary.
252
266
253
-
---
267
+
--
254
268
255
269
## Prefixes
256
270
@@ -322,7 +336,7 @@ function fetchPosts() {
322
336
}
323
337
```
324
338
325
-
## Singular/Plurals
339
+
## Singular and Plurals
326
340
327
341
Like a prefix, variable names can be made singular or plural depending on whether they hold a single value or multiple values.
0 commit comments