Skip to content

Commit

Permalink
Merge pull request #1 from goldbergyoni/master
Browse files Browse the repository at this point in the history
Updating fork to master
  • Loading branch information
andrewjbarbour authored Feb 10, 2021
2 parents 8e8ca37 + bdf8d63 commit 4d448ea
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,24 @@
"contributions": [
"content"
]
},
{
"login": "andrewjbarbour",
"name": "andrewjbarbour",
"avatar_url": "https://avatars.githubusercontent.com/u/77080074?v=4",
"profile": "https://github.com/andrewjbarbour",
"contributions": [
"content"
]
},
{
"login": "MasujimaRyohei",
"name": "mr",
"avatar_url": "https://avatars.githubusercontent.com/u/17163541?v=4",
"profile": "https://MasujimaRyohei.jp",
"contributions": [
"content"
]
}
],
"projectName": "nodebestpractices",
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const count = 2 // it tries to run 2(), but 2 is not a function
(function doSomething() {
// do something amazing
}())
// put a semicolon before the immediate invoked function, after the const definition, save the return value of the anonymous function to a variable or avoid IIFEs alltogether
// put a semicolon before the immediate invoked function, after the const definition, save the return value of the anonymous function to a variable or avoid IIFEs altogether
```

🔗 [**Read more:** "Semi ESLint rule"](https://eslint.org/docs/rules/semi)
Expand All @@ -340,7 +340,7 @@ const count = 2 // it tries to run 2(), but 2 is not a function

**TL;DR:** Use **_lowerCamelCase_** when naming constants, variables and functions and **_UpperCamelCase_** (capital first letter as well) when naming classes. This will help you to easily distinguish between plain variables/functions, and classes that require instantiation. Use descriptive names, but try to keep them short

**Otherwise:** Javascript is the only language in the world that allows invoking a constructor ("Class") directly without instantiating it first. Consequently, Classes and function-constructors are differentiated by starting with UpperCamelCase
**Otherwise:** JavaScript is the only language in the world that allows invoking a constructor ("Class") directly without instantiating it first. Consequently, Classes and function-constructors are differentiated by starting with UpperCamelCase

### 3.6 Code Example

Expand Down Expand Up @@ -1296,7 +1296,7 @@ All translations are contributed by the community. We will be happy to get any h

## Steering Committee

Meet the steering committee members - the people who work together to provide guidance and future direction to the project. In addition, each member of the committee leads a project tracked under our [Github projects](https://github.com/goldbergyoni/nodebestpractices/projects).
Meet the steering committee members - the people who work together to provide guidance and future direction to the project. In addition, each member of the committee leads a project tracked under our [GitHub projects](https://github.com/goldbergyoni/nodebestpractices/projects).

<img align="left" width="100" height="100" src="assets/images/members/yoni.png">

Expand Down Expand Up @@ -1561,6 +1561,8 @@ Thanks goes to these wonderful people who have contributed to this repository!
</tr>
<tr>
<td align="center"><a href="https://github.com/YA21"><img src="https://avatars.githubusercontent.com/u/37298463?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yuta Azumi</b></sub></a><br /><a href="#content-YA21" title="Content">🖋</a></td>
<td align="center"><a href="https://github.com/andrewjbarbour"><img src="https://avatars.githubusercontent.com/u/77080074?v=4?s=100" width="100px;" alt=""/><br /><sub><b>andrewjbarbour</b></sub></a><br /><a href="#content-andrewjbarbour" title="Content">🖋</a></td>
<td align="center"><a href="https://MasujimaRyohei.jp"><img src="https://avatars.githubusercontent.com/u/17163541?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mr</b></sub></a><br /><a href="#content-MasujimaRyohei" title="Content">🖋</a></td>
</tr>
</table>

Expand Down

0 comments on commit 4d448ea

Please sign in to comment.