サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
パリ五輪
onestepback.org
# Matz DI -- Block Injection # # Usage: # # def start_app # c = DI::Container.new # c.define(:blog) {|c| Blog.new(c.input, c.display)} # c.define(:input) {Input.new} # c.define(:dbms){DBMS.new} # c.define(:markup){Markup.new} # c.define(:plugin){|c| # p = Plugin.new # p.dbms = c.dbms # } # c.define(:display) {|c| # Display.new(c.dbms, c.markup, c.plugin) # } # blog = c.instance(:blog) # end module
I stumbled across this and it got me thinking … Update I’ve updated the Textile formatter on the site and the code for this entry is now displaying correctly. The previous version was swalling the == operators in the code. Lisp 1.5 Programmer’s Manual I stumbled across this in Bill Clementson’s blog and remembered using the Lisp 1.5 Prgrammers manual from the college years. I have strong memories
Several people have been having RubyGems issues. Deleting Your RubyGems Cache Several people have been reporting problems where RubyGems doesn’t find a gem on RubyForge, or gives other strange errors. It seems there was a gem on RubyForge that gave the Gem indexing software some headaches. And as a result, the gem index was corrupted. If you downloaded the corrupt index, then you may be experienci
Jim Weirich Consultant / Compuware jim@weirichhouse.org Slides Available at: http://onestepback.org/articles/10things
Dependency Injection: Vitally Important or Totally Irrelevant?
The Big Assumption … Ruby classes are just like Java classes Therefore the tradeoffs we learned from Java Apply to Ruby code as well This is WRONG!
Introduction At the 2004 Ruby Conference, Jamis Buck had the unenviable task to explain Dependency Injection to a bunch of Ruby developers. First of all, Dependency Injection (DI) and Inversion of Control (IoC) is hard to explain, the benefits are subtle and the dynamic nature of Ruby make those benefits even more marginal. Furthermore examples using DI/IoC are either too simple (and don’t convey
このページを最初にブックマークしてみませんか?
『{ |one, step, back| }』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く