2008-10-01から1日間の記事一覧
# zipperを作る zipper = Zipper.make(1, 2, 3) # 最初は、0番目にカーソルがある zipper.get #=> 1 # nextを呼ぶと、1番目にカーソルが移動する zipper.next.get #=> 2 んで書き換えもできるのですが、「副作用なし」なので、書き換えると丸ごと別のzipper…
gem update --systemではうまく行かない場合があるようなので、 その場合には以下のようにすればOkです。 1 # gem install rubygems-update 2 # update_rubygems http://blog.s21g.com/articles/920 http://b.hatena.ne.jp/entry/http://blog.s21g.com/artic…
http://w.koshigoe.jp/study/?%5BRuby%5D%20emacs-ruby http://b.hatena.ne.jp/entry/http://w.koshigoe.jp/study/?%5BRuby%5D%20emacs-ruby
MSVCでRubyの拡張ライブラリを作っているのですが、デバッグがprintfデバッグ頼りでめんどくさいです。 MSVCで、特にRubyの拡張ライブラリを作る場合のデバッグ方法を教えてください。 http://q.hatena.ne.jp/1199577576 , http://b.hatena.ne.jp/entry/http…
[http://w.koshigoe.jp/study/?[Ruby]%20emacs-ruby:image:right] [http://w.koshigoe.jp/study/?[Ruby]%20emacs-ruby] [http://b.hatena.ne.jp/entry/http://w.koshigoe.jp/study/?[Ruby]%20emacs-ruby]
Rails で開発しているとアプリケーション固有の設定を持たせたい場面が結構あります。でも Rails はその辺の面倒を見てくれないので、適当にやっている内にテラカオスな状態になってしまって地味に嫌でした。 そこで見つけたのが Configatron というライブラ…
Scala has a “mixin” construct called traits, which are roughly analogous to Ruby modules. They allow you to create reusable, modular bits of state and behavior and use them to compose classes and other traits or modules. The syntax for usi…
There are a few ActiveRecord-style wrappers for CouchDB out there these days, but many of them have fallen behind as CouchDB’s powers have increased. I’ve taken an interest in writing regular old web apps again – so now is the time when Co…