From 12ea570c79947d27f39e57f632353ab6cf512b64 Mon Sep 17 00:00:00 2001 From: Sam Breed Date: Sat, 8 Oct 2011 23:40:30 -0600 Subject: [PATCH 1/2] The statement "Javascript is an asynchronous language" is simply not true. Javascript is blocking in nature; it's Node that supplies the asynchronicity. --- .../control-flow/how-to-write-asynchronous-code/article.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/articles/getting-started/control-flow/how-to-write-asynchronous-code/article.md b/articles/getting-started/control-flow/how-to-write-asynchronous-code/article.md index 9c0b781..0d09ad5 100644 --- a/articles/getting-started/control-flow/how-to-write-asynchronous-code/article.md +++ b/articles/getting-started/control-flow/how-to-write-asynchronous-code/article.md @@ -1,5 +1,4 @@ - -Javascript is an asynchronous language, in contrast to many synchronous languages like PHP, Ruby, Python, Perl, C, etc. There are a number of important things to be aware of when learning to write asynchronous code - otherwise, you will often find your code executing in extremely unexpected ways. Take this (general) rule to heart: +Node enforces an ansynchronous coding style, in contrast to many synchronous languages like PHP, Ruby, Python, Perl, C, etc. There are a number of important things to be aware of when learning to write asynchronous code - otherwise, you will often find your code executing in extremely unexpected ways. Take this (general) rule to heart: ###Use the asynchronous functions, avoid the synchronous ones! From 18ff4254e97f595445722e225d28fb3114b8ac11 Mon Sep 17 00:00:00 2001 From: Sam Breed Date: Mon, 10 Oct 2011 09:53:21 -0600 Subject: [PATCH 2/2] credit to @hij1nx to the language of this edit. also removed the list of "synchronous" languages in favor of a broader statement about "popular web frameworks." --- .../control-flow/how-to-write-asynchronous-code/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/getting-started/control-flow/how-to-write-asynchronous-code/article.md b/articles/getting-started/control-flow/how-to-write-asynchronous-code/article.md index 0d09ad5..fc1b8b8 100644 --- a/articles/getting-started/control-flow/how-to-write-asynchronous-code/article.md +++ b/articles/getting-started/control-flow/how-to-write-asynchronous-code/article.md @@ -1,4 +1,4 @@ -Node enforces an ansynchronous coding style, in contrast to many synchronous languages like PHP, Ruby, Python, Perl, C, etc. There are a number of important things to be aware of when learning to write asynchronous code - otherwise, you will often find your code executing in extremely unexpected ways. Take this (general) rule to heart: +Nodejs promotes an asynchronous coding style from the ground up, in contrast to many of the most popular web frameworks. There are a number of important things to be aware of when learning to write asynchronous code - otherwise, you will often find your code executing in extremely unexpected ways. Take this (general) rule to heart: ###Use the asynchronous functions, avoid the synchronous ones!