WebFund 2013W Lecture 14: Difference between revisions
No edit summary |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Audio== | |||
Audio from the lecture given on March 7, 2013 is [http://homeostasis.scs.carleton.ca/~soma/webfund-2013w/comp2406-2013w-lec14-07Mar2013.m4a here]. | |||
==Databases== | ==Databases== | ||
* [http://en.wikipedia.org/wiki/ACID ACID] | * [http://en.wikipedia.org/wiki/ACID ACID] | ||
Line 7: | Line 11: | ||
* [http://en.wikipedia.org/wiki/Callback_%28computer_programming%29 Callbacks] | * [http://en.wikipedia.org/wiki/Callback_%28computer_programming%29 Callbacks] | ||
* [http://docs.mongodb.org/manual/reference/sql-comparison/ MongoDB and SQL terminology] | * [http://docs.mongodb.org/manual/reference/sql-comparison/ MongoDB and SQL terminology] | ||
* [http://en.wikipedia.org/wiki/Join_%28SQL%29 Join] | |||
==Concurrency in Node== | ==Concurrency in Node== | ||
Line 13: | Line 18: | ||
To make it easier to write and understand your code, though, you may want to look at these libraries that implement different approaches to the problem of writing sequential-like code in Node: | To make it easier to write and understand your code, though, you may want to look at these libraries that implement different approaches to the problem of writing sequential-like code in Node: | ||
* [ | * [http://github.com/caolan/async async] ([http://caolanmcmahon.com/posts/asynchronous_code_in_node_js/ blog intro]) | ||
* [http://caolanmcmahon.com/posts/asynchronous_code_in_node_js/ queue-flow] | * [http://caolanmcmahon.com/posts/asynchronous_code_in_node_js/ queue-flow] | ||
* [http://documentup.com/kriskowal/q/ | * [http://documentup.com/kriskowal/q/ Q: promises in JavaScript] | ||
The author of async also has a nice blog post on [http://caolanmcmahon.com/posts/nodejs_style_and_structure/ node style and structure]. |
Latest revision as of 01:21, 29 March 2013
Audio
Audio from the lecture given on March 7, 2013 is here.
Databases
- ACID
- Database Transaction
- Transaction Processing
- NoSQL
- Eventual Consistency
- Callbacks
- MongoDB and SQL terminology
- Join
Concurrency in Node
Standard node.js, with its design centered around asynchronous I/O and callbacks, can be annoying if you just want to do more traditional programming tasks such as data processing (read from multiple files and do stuff with it, for example). In general you should be wary of doing too much of this in your main node application as you may kill your performance; however, modern systems are pretty fast so you may be able to do more than you think.
To make it easier to write and understand your code, though, you may want to look at these libraries that implement different approaches to the problem of writing sequential-like code in Node:
The author of async also has a nice blog post on node style and structure.