Skip to content

Commit 66c2a92

Browse files
committed
Initial commit
0 parents  commit 66c2a92

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var number = 1;
2+
3+
var count = function () {
4+
console.log(number);
5+
number = number + 1;
6+
};
7+
8+
while (number <= 10) {
9+
count();
10+
}
11+
12+
console.log("Hello from down here!");
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
var number = 1;
2+
3+
var count = function () {
4+
console.log(number);
5+
number = number + 1;
6+
};
7+
8+
var loop = function () {
9+
if (number <= 10) {
10+
count();
11+
process.nextTick(loop);
12+
}
13+
}
14+
15+
loop();
16+
17+
console.log("Hello from down here!");

readme.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Beginner's Workshop for Node.js
2+
3+
## Friday: Workstation setup
4+
If you've never programmed or never programmed in Node.js before, come on Friday evening with your laptop for one-on-one help installing the dependencies needed to write and run Node.js applications.
5+
6+
- Introduction to the command line on Windows, Mac OS X, or Linux
7+
- Explanation of dynamic vs. compiled languages
8+
- Installation Node.js
9+
- Tour of the `node` and `npm` commands
10+
- Resources for Node.js beginners
11+
- Rundown of Saturday's schedule
12+
13+
## Saturday: Workshop
14+
Come on Saturday to learn "How to Node." We'll walk through creating applications, discuss the strengths and weaknesses of Node.js, and individually deploy web sites to "the cloud!"
15+
16+
- History and introduction to JavaScript
17+
- Explanation of event-based concurrency as compared to process-based concurrency (and what concurrency is!)
18+
- Code 1: Counting to ten using event-based callback concurrency
19+
- The two patterns of concurrency: callbacks and EventEmitters
20+
- Code 2: Counting to ten using EventEmitters
21+

0 commit comments

Comments
 (0)