You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
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++) {
# Callback Hell *A guide to writing asynchronous JavaScript programs* ### What is "*callback hell*"? Asynchronous JavaScript, or JavaScript that uses callbacks, is hard to get right intuitively. A lot of code ends up looking like this: fs.readdir(source, function (err, files) { if (err) { console.log('Error finding files: ' + err) } else { files.forEach(function (filename, fileIndex) { console.log
Consuming PromisesMore Terminology: Resolve, Reject and ProgressdonefailalwaysprogresspromisethenstatewhenCreating DeferredsConstructionresolve and resolveWithreject and rejectWithnotify and notifyWithPutting It All TogetherDeferred DynamicsDeprecated Promise MethodsisRejected and isResolvedpipeChanges in the jQuery Deferred API A Replacement for the setTimeout FunctionChallengesMessaging in Chrom
はじめに いつもは「マンガで分かるプログラミング用語辞典」を描いている、クロノス・クラウンの柳井です。JavaScript大好きで、「マンガで分かる JavaScriptプログラミング講座」を書いたりもしています。そして最近は「CodeIQ」というサイトで、さまざまなプログラミングの問題を出題しています。 今回は、その「CodeIQ」で出題して人気のあった「FizzBuzzダンジョン」という問題のさまざまな解法を紹介しようと思います。私自身も勉強になり、コードを読むことを楽しめましたので、プログラマーの方々はきっと楽しめると思います。 「FizzBuzz問題」とは、3の倍数のときは「"fizz"」、5の倍数のときは「"buzz"」、共通の倍数のときは「"fizzbuzz"」、その他は「数値」を戻すという単純な処理です。ループ処理と分岐処理を理解していればコードを書けます。 「FizzBuz
We’re happy to mark another significant milestone for the TypeScript project with the release of the 1.0 Release Candidate. Since the first release in October of 2012, the TypeScript language has grown to support generics, which enables rich typing of JavaScript libraries. Last December, the release focused on better performance and reliability for larger codebases. Today, we’re making the 1.0R
Webデザイン プロフェッショナルワークフロー・バイブル Andy Clarke, 今里了次(訳), 株式会社ミツエーリンクス(監訳), 木達一仁(監訳) マイナビ出版 3,168円 (2,880円+税) 内容紹介一流のWebデザイナーがHTML+CSSデザインのワークフローを提示する本書(原書タイトル「Transcending CSS: The Fine Art of Web Design」)は、「Discovery 発見」「Process プロセス」「Inspiration インスピレーション」「Transcendence 卓越」の4部構成になっています。 Chapter1「Discovery」の章では、ワークフローの改善方法の発見について探ります。マークアップやブラウザ対応の方法など、「当たり前」のように考え行動している中にも改善の要素はあるのではないか? Chapter2「Proc
Releases, Offers & More Be the first to hear about our newest content, best promotions and upcoming events. Plus get 25% off your next purchase. Newsletter Sign Up Download Accounts Your email address is your account identifier. You can create a password, or just download from the links sent via email. My Orders (Resend order emails) How We're Different Hands-on instructions Solutions to real-worl
IntroductionKoa is a new web framework designed by the team behind Express, which aims to be a smaller, more expressive, and more robust foundation for web applications and APIs. By leveraging async functions, Koa allows you to ditch callbacks and greatly increase error-handling. Koa does not bundle any middleware within its core, and it provides an elegant suite of methods that make writing serve
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く