ラベル javascript の投稿を表示しています。 すべての投稿を表示
ラベル javascript の投稿を表示しています。 すべての投稿を表示

1/30/2012

IcedCoffeeScript もいいかもしれない

過去、何度か JavaScript に挑戦して、そのたびに挫折してきた僕にとって CoffeeScript は救世主だった。jQuery も使ったら、やりたいことが簡単にかけて感動した。

そんな CoffeeScript から folk した IcedCoffeeScript なんてものを見つけた。
IcedCoffeeScript (ICS) adds two new keywords: await and defer. These additions simply and powerfully streamline asynchronous control flow, both on the server and on the browser. Say goodbye to callback pyramids; say adios to massive code rewrites when synchronization requirements change slightly. Say hello to clean, readable, maintainable control flow for network and asynchronous operations!
await と defer というふたつのキーワードを使って、非同期な処理をきれいにかけるみたい。これはよさそうだ。TameJS ってのの CoffeeScript 版。CoffeeScript に pull request を出したのが去年の12月。そのときはこの拡張機能のことを "Tame" って呼んでたけど、つい昨日(?) "IcedCoffeeScript" って名前にしたんだねー。

GitHub の pull request と、それに対するコメントを読んだのははじめてだったんだけど、結構面白い。最初のうちは、「+1」とか言われてたのに、途中で「-∞」なんて言われちゃったり。。ちょっと、かわいそう。。

でも、作者の maxtaco さんはかっこいい。さらりと、かどうかはわからないけど、
As for the voting, looks like it's about +10, and negative infinity, so unless we find a higher order of positive infinity, this is all moot.

って言ってる。なんか、余裕を感じるなー。

というわけで、IcedCoffeeScript は便利そう、ということもあるけど、maxtaco さんを応援したい気持ちになったから、 ちょっと使ってみようと思う!

11/06/2011

scrumblr を勉強すれば node.js と仲良くなれるかも?

最近興味があるもののひとつが node.js。
昨日、ちょっと時間があったから、node.js をキーワードにして Google で検索していたら、かちびと.net がヒットして、scrumblr を知った。

scrumblr
a web-based simulation of a physical agile sprint board that supports real-time collaboration. it is built using node.js, websockets (using socket.io), CSS3, and jquery. i hope you like it.
とのことだけど、すっごく簡単にいうと、ホワイトボード+付箋紙 のウェブサービス。
デモページ で遊べば雰囲気がつかめるはず。

scrumblr が実現していること、さくさく感もさることながら、この見た目、フォント、すっごくいい!僕好み。github でソースコードを公開してくれてるし、せっかくだから勉強させてもらおうかなあ。