mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-11-01 18:46:54 +08:00
@ -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",
|
||||
|
||||
@ -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)
|
||||
@ -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
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user