在异步编程习惯阅读材料 [英] Reading Material on Async Programming Practices

查看:151
本文介绍了在异步编程习惯阅读材料的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

异步编程是下一代和未来的范例......或者看起来是这样。我在Node.js的编程已经在过去几个月一直在学习写code这个样子。我有一个同事谁在Silverlight中工作,我一直在试图教他如何使用TPL。我也已经展示了他的等待关键字,它是如何工作的。

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.

过了一会,使用回调成为pretty正常。在Node.js的,我现在用的是caolan /异步项目,以避免深度嵌套回调。我已在源$ C ​​$ C偷看,但很喜欢阅读STL的第一次。

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.

尽管我已经学到了很多,在这种环境中工作的技术,我担心,我很想念别人。我很好奇,如果有任何读物/视频讲解了异步编程技术以及如何建立一个异步库像TPL或caolan /异步。

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.

推荐答案

好吧,即使我知道大多数异步源$ C ​​$ C以及它是如何工作,但我还是用异步居多。所以不要担心,你并不需要知道它究竟是如何工作的。但作为学习,好,我建议你阅读这些文章:

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:

  • http://book.mixu.net/node/ch7.html
  • http://stella.laurenzo.org/2011/03/bulletproof-node-js-coding/
  • http://howtonode.org/promises
  • http://web.archive.org/web/20120111150910/http://nodebits.org/distilled-patterns?
  • http://raynos.github.com/presentation/shower/controlflow.htm (from Raynos comment)

这些是我在看到网上解释异步控制流没有任何抽象的最好的事情。

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

这篇关于在异步编程习惯阅读材料的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆