1

Asynchronous programming is the next up-and-coming paradigm... or so it seems. I have been programming in Node.js for the past few months and have been learning to write code this way. I have a coworker who works in Silverlight and I have been trying to teach him how to use the TPL. I have also been showing him the "await" keyword and how it works.

After a while, using callbacks becomes pretty normal. In Node.js, I am using the caolan/async project to avoid deeply nested callbacks. I have taken a peek at the source code, but it is like reading the STL for the very first time.

Even though I have learned a lot of techniques that work in this environment, I worry I am missing others. I was curious if there were any reading materials/videos that explained async programming techniques and how to build an async library like the TPL or caolan/async.

Just trying to master the paradigm before it's everywhere.

Andrew Barber
  • 39,603
  • 20
  • 94
  • 123
Travis Parks
  • 8,435
  • 12
  • 52
  • 85
  • 2
    [Control Flow abstractions](http://raynos.github.com/presentation/shower/controlflow.htm) – Raynos Feb 20 '12 at 02:30

1 Answers1

5

Well even though I know most of Async source code and how does it work, but I still use async mostly. So don't worry about that, you don't need to know exactly how it works. But as of learning, well I suggest you to read these articles:

These are the best things that I've seen on the net explaining async control flow at without any abstractions.

Community
  • 1
  • 1
Farid Nouri Neshat
  • 29,438
  • 6
  • 74
  • 115
  • 2
    book.mixu is a really good one o/ – Raynos Feb 20 '12 at 03:46
  • These are all awesome articles. Now, if I just understood how the libraries worked (I will just have to stare for a while). It would also be nice if I someone wrote an article on how async affects software architecture (very little from what I can tell). – Travis Parks Feb 20 '12 at 13:13
  • Actually, http://book.mixu.net/ch7.html explains how the async libraries work really well. – Travis Parks Feb 20 '12 at 13:37