Fetch with Streams Yutaka Hirano Apr. 2015
Introduction to JavaScript Promises Modern JS 勉強会 at GREE
Syncing Async with Kyle Simpson Save 10% off ANY FITC event with discount code 'slideshare' See our upcoming events at www.fitc.ca I bet you think “callback hell” is about function nesting and levels of indentation. Not so much. I bet you’ve heard that Promises replace callbacks. Nope. We need some clarity on what async flow control is all about in JavaScript. We’ll explore the perils of “Inversio
404 Not found! The page that you are looking for could not be found.
brilliant and want laws changed so I can marry them." Traditional control flow: from requests import get location = get('http://www.telize.com/geoip').json() lat = location['latitude'] lon = location['longitude'] weather = get('http://api.openweathermap.org/data/2.1/find/city?lat=' + str(lat) + '&lon=' + str(lon) + '&cnt=1').json() print weather['list'][0]['weather'][0]['description']
Philipp Haller @philippkhaller Futures and Async: When to Use Which? Overview • A brief guide to the Future of Scala • What is a Promise good for? • What is Async? • Guidelines on when to use which Future Creation object Future { // [use case] def apply[T](body: => T): Future[T] // .. } Example val fstGoodDeal = Future { usedCars.find(car => isGoodDeal(car)) } Future trait Future[+T] extends Await
Presented at the STL Ember.js Meetup on 2014-02-06. Video: http://youtu.be/wc72cyYt8-c
node --harmony-generators script.jsSlides: pag.forbesl.co.uk Sequence 1function count(n){ var res = [] for (var x = 0; x < n; x++) { res.push(x) } return res } for (var x of count(5)) { console.log(x) } Sequence 2function count(){ var res = [] for (var x = 0; true; x++) { res.push(x) } return res } for (var x of count()) { console.log(x) } Sequence 3function* count(){ for (var x = 0; true; x++) {
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く