This domain may be for sale!
With the release of ES2015 comes three new ways to create functions in JavaScript. // Arrow functions const add = (x, y) => { return x + y }// Concise methods const MathUtils = { add (x, y) { return x + y } }// Classes class Point { constructor (x, y) { this.x = x this.y = y } }// Turns out, `Point` is still just a function.People have a great time pointing at JavaScript and sarcastically saying t
Your users are no longer sitting at their desktops, with a wire connecting them to the internet. They are visiting your site from a phone in an elevator, from their tablet on the subway, or on their laptop while they sit cramped into seat 25 E. This is why modern browsers support service workers, a new technology which lets you serve your content to your users, even when they are offline. UpUp is
ES6で Promise, co, ramda, FRP(bacon.js)を試す Tweet 先日、Javascriptでちょっとしたツールを書いたのですが、いい機会なので、これを題材に ES6 について勉強してみました。 最初にES5で書いたロジックを、次のようにいろいろなスタイルで書き直してみました。 元のES5バージョン そのままES6にしたバージョン Promise を使ったバージョン coというライブラリとgenerator というES6の新機能を使って逐次処理するバージョン ramda.jsを使って関数型プログラミングのスタイルで書いたバージョン bacon.jsを使ってFRPのスタイルで書いたバージョン ソースは、ここ です。 まだ、私自身勉強中なのですが、これをもとに ES6 の機能や新しいパラダイムについて簡単に紹介してみたいと思います。 例題 書いたツールは、誰かがA
Siapa bilang permainan togel merugikan? Dari sejak dahulu kala, mainkan togel akan selalu menguntungkan. Maka dari itu pasang togel sudah menjadi sebuah kebiasaan di masyarakat Indonesia, sembari pasang sekaligus mencari penghasilan tambahan. Apalagi di era modern dimana sudah mengalami banyak kemajuan dalam teknologi tentunya permainan togel bisa dimainkan secara daring. Sekarang pasang togel onl
Two ECMAScript 6 [1] features enable an intriguing new style of asynchronous JavaScript code: promises [2] and generators [3]. This blog post explains this new style and presents a way of using it without promises. Overview # Normally, you make a function calls like this: let result = func(···); console.log(result); It would be great if this style of invocation also worked for functions that perf
Synchronous(同期)スクリプトは効率が悪い。というのも、ブラウザにDOM構築をさせ、スクリプトを読み込ませ、残りのページをリロードする前に実行してしまいます。今さらな話ですが、これがわれわれプログラマがasynchronous(非同期)スクリプトをよく使うようになった理由です。ここに分かりやすい例があります。 <!-- BAD: blocking external script --> <script src="http://somehost.com/awesome-widget.js"></script> <!-- GOOD: remote script is loaded asynchronously --> <script> var script = document.createElement('script'); script.src = "http://somehos
Create objects from reusable, composable behaviors Stampit is a 1.4KB gzipped (or 3K minified) JavaScript module which supports three different kinds of prototypal inheritance (delegation, concatenation, and functional) to let you inherit behavior in a way that is much more powerful and flexible than any other Object Oriented Programming model. Stamps are standardised composable factory functions.
TL;DR Because of associated dangers with them (which have caused a lot of real damage to a lot of real projects) we need the ability to disallow `new`, `extends`, `super`, & `instanceof` in our lint rules. ES6 class won’t let us disallow `new` without throwing errors. It seems inevitable that the `class` keyword in JavaScript is going to catch on, but that’s a problem because it’s fundamentally br
Universal (aka "isomorphic") means that it's designed to run a lot of the same code on both the client and the server. Typically that includes a lot of rendering and domain logic. There are many advantages to building apps this way, but the primary advantages are: Cross-functional teams. Since everything is written in JavaScript, it's easier to build teams who know how to work on both the client a
Web フロントエンド開発において gulp は非常に便利だ。しかしあまりにも gulp に依存しすぎており、これなしで開発できるだろうか?という不安もある。というわけで gulp を利用せず package.json と npm だけで同等の機能を実現する方法を検討してみた。 2015/11/4 追記 babelify v7.2 を試すで babelyfy 7.2 ( とその中の Babel 6.x ) について調べ、npm-scripts の変更が必要なことを確認したので追記。また Windows 環境の動作検証をおこなったところ、最新の watchify なら -o オプションが通ることを確認できた。よって本記事の最後の課題が解決したことになる。 2015/9/23 追記 cpx と rimraf を試すの内容をファイル処理に反映して簡略化。 2015/9/15 修正 Stylus
What readers have to say: “Spent the afternoon reading @raganwald's JavaScript Allongé, the Six Edition. Highly recommended. Let the refactoring begin!”—Marcus Vorwaller “I think it’s one of the best tech books I’ve read since Sedgewick’s Algorithms in C.”—Andrey Sidorov “Your explanation of closures in JavaScript Allongé is the best I've read.”—Emehrkay “It's a different approach to JavaScript th
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く