19th April 2014 I’ve been experimenting with React.js after recently watching a great presentation by Pete Hunt at JSConf AU 2014. Like many great tools, React focuses on one problem: the views in your web application. The rest of the technology stack is left up to you. If you haven’t had a chance to play with React, I highly recommend spending a couple of hours reading up on it. If, like me, you’
Facebook introduced Flux about a year ago for client-side web application building and since then it has become one of the hottest tech in the web development scene. The task of Flux is to isolate business logic from the user interface logic by using dispatcher, stores and actions. The core idea is the unidirectional data flow which means that actions are propagated through the entire system in re
Bacon.jsという、Functional Reactive Programming のFrameworkを使ったJava Scriptライブラリを使って業務アプリを書いてみました。関数型の考え方をふんだんに使いつつも、GUIなどのユーザ入力を伴うような処理に柔軟に対応している、マイナーながら優れたライブラリです。 実際にBacon.jsを使って実装してみて、何が良かったかなってところを、 ちょっと素人なりに色々と考えてみました。 1. 出てくるワードが直感的であるBaconでは、EventStream, Propertyなどといった独自のワードがいくつか出てきます。 ライブラリを読んで色々と使うのは大変だなあと個人的にはよく思いますが、Baconに関しては、新しい概念を取り入れているのにも関わらず、非常に直感的且つイメージがつきやすいワードを選択しているので、頭の中に構造を描きやすい仕
2013-02-04 | javascript Bacon.js for dummies Bacon.js is an FRP module for events on javascript. Which can transform your event listener/handler to a functional event stream. After servey a few blogs and example project, I found it is a really interesting concept and can make event handling speghetti code into clear functional logics. Event streamFirst, what is event stream? Actually it is nothing
今朝、TechCrunchの記事 を読んだ。 JavaScriptは今, 豚から豹に変身中: 最先端の言語改良努力をMLOC.jsカンファレンスに見る > さて、メンテナンス性の良いコードを書く最良の方法は、なるべく少なく書くことだ。bacon.jsのようなライブラリやElm言語は、複雑なデータ依存性を簡潔に表現し、デベロッパがデータの形をライブラリに合わせる努力をなくす。その結果、コードの量が少なくなり、メンテナンス性の良い高品質なアプリケーションになる。 bacon.js ってなんぞやと思ってgithubみてみたら、これは良い物臭がぷんぷんしたので調べてみた。 Functional reactive programming(FRP)という概念をjsでやろうとしてる流れらしい。 FRPの概念的な部分はまだちゃんと理解してないんだけど、要は、時系列に発生するデータを、関数型っぽく扱おうとい
I've heard the words Callback Hell quite a many times lately. I'll take it that you know what I'm talking about. Just gonna briefly show how to get Back from Hell with bacon.js... So, what about if you want to perform two independent AJAX calls and do something with the values of both? You might $.ajax("/cats").done(function(cats) { $.ajax("/dogs").done(function(dogs) { doStuffWithCatsAndDogs(cats
Bacon.js bus is an excellent way to publish and subscribe to event streams through one unified channel. Bus helps a developer to decouple application and makes code much cleaner. Bacon.js Bus example This example outputs status of each validator to html page. It shows simple example of publish/subscribe with Bacon.js. First we need some scripts – JQuery, Bacon.js and Bacon.UI.js. <html> <head> <ti
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く