1137 Commits

Author SHA1 Message Date
0d1d81d36b chore(march-2019): align CN translation with the English version
- Update top badges, flowers and stars
diff --git a/README.chinese.md b/README.chinese.md
index a17ab626..31e2073e 100644
--- a/README.chinese.md
+++ b/README.chinese.md
@@ -9,7 +9,7 @@
 <br/>

 <div align="center">
-  <img src="https://img.shields.io/badge/⚙%20Item%20count%20-%2079%20Best%20practices-blue.svg" alt="79 items"> <img src="https://img.shields.io/badge/%F0%9F%93%85%20Last%20update%20-%20Feb%201%202019-green.svg" alt="Last update: February 1st, 2019"> <img src="https://img.shields.io/badge/%E2%9C%94%20Updated%20For%20Version%20-%20Node%2010.15.1%20LTS-brightgreen.svg" alt="Updated for Node 10.15.1 LTS">
+  <img src="https://img.shields.io/badge/⚙%20Item%20count%20-%2081%20Best%20Practices-blue.svg" alt="81 items"> <img src="https://img.shields.io/badge/%F0%9F%93%85%20Last%20update%20-%20Mar%2010%202019-green.svg" alt="Last update: March 10, 2019"> <img src="https://img.shields.io/badge/%E2%9C%94%20Updated%20For%20Version%20-%20Node%2010.15.3%20LTS-brightgreen.svg" alt="Updated for Node 10.15.3 LTS">
 </div>

 <br/>
@@ -96,7 +96,7 @@ 🔗 [**更多: 配置最佳实践**](/sections/projectstructre/configguide.chin

 ## ![✔] 2.1  使用 Async-Await 和 promises 用于异步错误处理

-**TL;DR:** 使用回调的方式处理异步错误可能是导致灾难的最快的方式(a.k.a the pyramid of doom)。对您的代码来说,最好的礼物就是使用规范的promise库或async-await来替代,这会使其像try-catch一样更加简洁,具有熟悉的代码结构。
+**TL;DR:** 使用回调的方式处理异步错误可能是导致灾难的最快的方式(a.k.a the pyramid of doom)。对您的代码来说,最好的礼物就是使用规范的promise库或async-await来替代,这会使其像try-catch一样更加简洁,具有熟悉的代码结构。

 **否则:** Node.js回调特性, function(err, response), 是导致不可维护代码的一个必然的方式。究其原因,是由于混合了随意的错误处理代码,臃肿的内嵌,蹩脚的代码模式。

@@ -283,17 +283,17 @@ 🔗 [**更多:** "Why does a results vary based on curly brace placement?" (Sta
 ### 代码示例 ###
 ```javascript
   // 使用UpperCamelCase命名类名
-  class SomeClassExample () {
-
+  class SomeClassExample () {
+
     // 常量使用const关键字,并使用lowerCamelCase命名
     const config = {
       key: 'value'
     };
-
+
     // 变量和方法使用lowerCamelCase命名
     let someVariableExample = 'value';
     function doSomething() {
-
+
     }

   }
@@ -485,7 +485,7 @@ 🔗 [**更多: 监控!**](/sections/production/monitoring.chinese.md)

 🔗 [**更多: 使用智能日志增加透明度**](/sections/production/smartlogging.chinese.md)
-
+
 <br/><br/>

 ## ![✔] 5.3. 委托可能的一切(例如:gzip,SSL)给反向代理
@@ -519,7 +519,7 @@ 🔗 [**更多: 锁住依赖**](/sections/production/lockdependencies.chinese.md

 🔗 [**更多: 使用正确的工具保护进程正常运行**](/sections/production/guardprocess.chinese.md)

-
+
 <br/><br/>

 ## ![✔] 5.6. 利用CPU多核
@@ -617,7 +617,7 @@ 🔗 [**更多: 使用自动检测漏洞的工具**](/sections/production/detect
 <br/><br/>

-## ![✔] 5.14. 在每一个log语句中指明 ‘TransactionId’
+## ![✔] 5.14. 在每一个log语句中指明 ‘TransactionId’

 **TL;DR:** 在每一个请求的每一条log入口,指明同一个标识符,transaction-id: {某些值}。然后在检查日志中的错误时,很容易总结出前后发生的事情。不幸的是,由于Node异步的天性自然,这是不容易办到的,看下代码里面的例子

@@ -951,10 +951,10 @@ Independent Node.js consultant who works with customers at USA, Europe and Israe
 👨‍💻 Software engineer, 🌐 web developer, 🤖 emojis enthusiast.

 ## `Refael Ackermann` [@refack](https://github.com/refack) &lt;refack@gmail.com&gt; (he/him)
-Node.js Core Collaborator, been noding since 0.4, and have noded in multiple production sites. Founded `node4good` home of [`lodash-contrib`](https://github.com/node4good/lodash-contrib), [`formage`](https://github.com/node4good/formage), and [`asynctrace`](https://github.com/node4good/asynctrace).
+Node.js Core Collaborator, been noding since 0.4, and have noded in multiple production sites. Founded `node4good` home of [`lodash-contrib`](https://github.com/node4good/lodash-contrib), [`formage`](https://github.com/node4good/formage), and [`asynctrace`](https://github.com/node4good/asynctrace).
 `refack` on freenode, Twitter, GitHub, GMail, and many other platforms. DMs are open, happy to help.

-## `Bruno Scheufler`
+## `Bruno Scheufler`
 💻 full-stack web developer and Node.js enthusiast.

 ## `Kyle Martin` [@js-kyle](https://github.com/js-kyle)
@@ -1031,13 +1031,19 @@ 🌻 [Iman Mohamadi](https://github.com/ImanMh),
 🌻 [Remek Ambroziak](https://github.com/reod),
 🌻 [Sergii Paryzhskyi](https://github.com/HeeL),
 🌻 [Kapil Patel](https://github.com/kapilepatel),
-🌻 [迷渡](https://github.com/justjavac)
+🌻 [迷渡](https://github.com/justjavac),
+🌻 [Hozefa](https://github.com/hozefaj),
+🌻 [Ethan](https://github.com/el-ethan),
+🌻 [Sam](https://github.com/milkdeliver),
+🌻 [Arlind](https://github.com/ArlindXh),
+🌻 [Teddy Toussaint](https://github.com/ttous),
+🌻 [Lewis](https://github.com/LewisArdern)

-### Stars <br/>
+### Stars

  [Kyle Martin](https://github.com/js-kyle),
  [Keith Holliday](https://github.com/TheHollidayInn),
  [Corey Cleary](https://github.com/coreyc),
  [Maximilian Berkmann](https://github.com/Berkmann18)

-<br/><br/>
+<br/><br/><br/>
2019-03-10 15:04:32 +05:30
d4e69a544f chore(march-2019): align BR translation with the English version
- Ensure BR translation is aligned with the English version
2019-03-10 15:00:42 +05:30
8f6a2d0584 chore(march-2019): service maintenance tasks
- Update top badges with
  1. best practices item count (81 as on Mar 10, 2019)
  2. last update date (Mar 10, 2019)
  3. Node.js version (latest LTS - 10.15.3)
- Update 'thank you' stars & flowers

Closes: https://github.com/i0natan/nodebestpractices/issues/338
2019-03-10 14:27:01 +05:30
f0670e0e81 Merge BR translation into master (#351)
Merge BR translation into master, finally!

Please turn on the `No Whitespace` option during review.

![image](https://user-images.githubusercontent.com/2608321/53858802-7dba0a00-4001-11e9-998b-3506e012b357.png)

/cc @marcelosdm 

Closes: https://github.com/i0natan/nodebestpractices/issues/223
2019-03-10 12:31:22 +05:30
a83aa00464 fix markdown error (#349) 2019-03-05 12:30:39 +05:30
cfaa28ddbd Merge pull request #328 from i0natan/contribution_model
Adds detail on contribution model
2019-03-05 18:11:56 +13:00
6085af6f54 Merge branch 'master' into contribution_model 2019-03-05 18:11:19 +13:00
9811373046 Merge pull request #330 from hozefaj/fix-typos
docs: fix typos and couple spelling changes
2019-03-03 14:57:02 +01:00
99daf1ee99 Merge pull request #347 from LewisArdern/patch-3
Updates to commonsecuritybestpractices.md
2019-03-02 12:10:16 +13:00
b21778c7e0 Merge branch 'master' into contribution_model 2019-03-02 11:45:33 +13:00
78004e199f update httpOnly
Technically its HttpOnly, so i updated to reflect that.
2019-02-26 13:40:30 -08:00
637523810d Updates to commonsecuritybestpractices.md
Did not like that OWASP A7 only included 'use CSP, so updated that to reference more content from OWASP with some slight changes to reflect node, e.g use a template engine.

Made some slight changes to the content for grammar improvements
2019-02-25 15:11:31 -08:00
ed2c333af5 Merge pull request #335 from milkdeliver/patch-1
Update guardprocess.chinese.md
2019-02-25 08:40:42 +08:00
0f836d69f7 Merge branch 'master' into fix-typos 2019-02-23 17:39:57 +01:00
4a4a740ce1 Merge pull request #344 from LewisArdern/patch-2
Grammar improvements to secureserver.md
2019-02-22 17:57:59 +01:00
807fe9dea8 Slight changes
Suggested changes from comments
2019-02-22 08:26:25 -08:00
a1477e4a09 Grammar improvements to secureserver.md
I read this page and saw a few grammar improvements, hopefully you like them.
2019-02-21 17:06:02 -08:00
03fb73dbdf Merge pull request #342 from LewisArdern/patch-1
Include new Function within avoideval.md
2019-02-22 09:48:21 +13:00
263e270bb2 Merge pull request #339 from i0natan/news-and-updates
Added 'News' section + new BP 4.2
2019-02-20 21:31:56 +02:00
830907a958 Include new Function within avoideval.md
Dynamic execution of JavaScript also happens in new Function, which is even referenced here: https://github.com/i0natan/nodebestpractices#-615-avoid-javascript-eval-statements, so this should be included.
2019-02-20 07:40:20 -08:00
6287a7bf98 Per Bruno's remark 2019-02-18 09:18:53 +02:00
63b98c9b65 update collaborators 2019-02-18 16:33:51 +13:00
1b9be08cf2 Added news, updates and new BP: 4.2 2019-02-16 23:15:25 +02:00
89cf3079fe Added news, updates and new BP: 4.2 2019-02-16 23:14:49 +02:00
aa15da1964 Added news, updates and new BP: 4.2 2019-02-16 23:11:17 +02:00
59e6e8f474 Genereic message 2019-02-16 23:09:55 +02:00
37177148b2 Merge pull request #337 from ttous/patch-1
Typo fix
2019-02-14 18:12:19 +01:00
67e7c3b49c Typo fix 2019-02-14 17:10:50 +01:00
e70bcff1d3 Merge pull request #336 from ArlindXh/master
typo fix at 4.1
2019-02-14 16:45:13 +01:00
c9333be9b0 typo fix 2019-02-14 16:21:28 +01:00
ee66477a09 typo fix at 4.1 2019-02-14 13:24:41 +01:00
Sam
8843e9c071 Update guardprocess.chinese.md 2019-02-14 16:24:32 +08:00
e5922c36b2 Merge pull request #334 from el-ethan/es/typos-and-grammar
Fix some typos and grammar errors, add a few links
2019-02-09 18:53:09 +01:00
545ae028cd Fix some typos and grammar errors, add a few links 2019-02-09 10:08:04 -06:00
cbf65392dd Merge pull request #332 from i0natan/jan_2019
Jan 2019 maintenance
2019-02-04 14:34:43 +01:00
26d6be877c Jan 2019 maintenance 2019-02-04 18:31:47 +13:00
4a3f0d60e4 minor changes based on feedback 2019-02-04 18:20:13 +13:00
9ef4e5a4e6 docs: fix typos and couple spelling changes 2019-02-03 12:32:50 -08:00
c4b3b26bb7 Merge pull request #323 from i0natan/15_Jan_19_2
minor readability changes to best practice names
2019-02-03 11:36:17 +01:00
10cd19e71e update introduction prose (#322)
* update introduction prose

* Update README.md

Co-Authored-By: js-kyle <kyle.martin@hotmail.co.nz>

* Peer review comments
2019-02-01 11:00:57 +05:30
e5e033215f Update .operations/CONTRIBUTING.md
Co-Authored-By: js-kyle <kyle.martin@hotmail.co.nz>
2019-02-01 16:25:59 +13:00
6c24bc5ea4 Update .operations/CONTRIBUTING.md
Co-Authored-By: js-kyle <kyle.martin@hotmail.co.nz>
2019-02-01 16:25:45 +13:00
2ff9490695 Update CONTRIBUTING.md
The term "small contribution" might underestimate the contribution of flowers and stars
2019-01-26 22:03:01 +02:00
65fd9b42e3 minor changes based on peer review 2019-01-22 19:58:03 +13:00
3639e61f70 add contribution model 2019-01-21 17:16:12 +13:00
2ad2f97097 WIP 2019-01-21 15:58:19 +13:00
c95aef04a0 WIP 2019-01-20 19:35:58 +13:00
29dc20e057 Peer review comments 2019-01-19 08:22:04 +13:00
1ef2ec2ffb minor readability changes to best practice names 2019-01-15 19:24:30 +13:00
3933767414 Merge pull request #305 from Berkmann18/dev
Added 'Native methods Over Util' article
2019-01-14 10:58:42 +02:00