07 Apr '13, 2pm

@andypike yeah that's what I thought. I'm a ruby novice are mixins and modules the sane thing?

Great article! And apparently you are not alone thinking about this in a non-Java world. In Scala people talk about those things too and the solution is pretty similar (use traits and “include” them inside classes that need that dependency). It seems simpler, like you said, because you don’t need a framework and it’s a language feature (in Scala, the wiring is done in compile time and is also strong typed). An interesting article about DI in Scala: http://jonasboner.com/2008/10/06/real-world-scala-dependency-injection-di.html But both those solutions make me think if those are really Inversion of Control approaches, or only some new kind of dependency resolution pattern. According do Fowler, IoC stands for code being called for you, not you calling everything (the famous Hollywood pattern): http://martinfowler.com/bliki/InversionOfControl.html In the first example, using t...

Full article: http://fabiokung.com/2010/05/06/ruby-and-dependency-injec...

Tweets

a good read #ruby verbose mode,

mislav.uniqpath.com 07 Apr '13, 3pm

One thing about verbose mode that most of you might already be familiar with isn’t at all documented. I’m talking about th...

Ruby Science: Dependency Injection, Inlining Cl...

robots.thoughtbot.com 29 Mar '13, 4pm

March 29, 2013 jferris ruby rails ruby science refactoring Ruby Science: Dependency Injection, Inlining Classes, and DRY W...

Using GDB to inspect a running Ruby process

robots.thoughtbot.com 07 Apr '13, 6am

April 5, 2013 jyurek ruby debugging unix processes Using GDB to inspect a running Ruby process This job shouldn’t be takin...

"XML is like violence - if it doesn’t solve you...

nokogiri.org 12 Apr '13, 5pm

Nokogiri::CSS::Tokenizer::ScanError Nokogiri::Decorators Nokogiri::Decorators::Slop Nokogiri::EncodingHandler Nokogiri::HT...

Barcelona Ruby Conference - They are coming...

rubyflow.com 08 Apr '13, 8am

Barcelona Ruby Conference - They are coming... Posted by codegram on April 08, 2013 — 0 comments Check out our hyper-reali...

If you're building a new Ruby gem, spare yourse...

gembundler.com 11 Apr '13, 3am

If you're creating a gem from scratch, you can use bundler's built in gem skeleton to create a base gem for you to edit. $...

@cosmo__ ruby '1.9.3' とか。

gembundler.com 05 Apr '13, 2pm

Like gems, developers can setup a dependency on Ruby. This makes your app fail faster in case you depend on specific featu...

Ruby processes are regular processes and can be...

robots.thoughtbot.com 05 Apr '13, 6pm

April 5, 2013 jyurek ruby debugging gdb Using GDB to inspect a running Ruby. This job shouldn’t be taking this long! Well,...

Ruby Matrix, the Forgotten Library

rubylearning.com 04 Apr '13, 3am

Ruby Matrix, the Forgotten Library This guest post is contributed by Matthew Kirk , who is a partner at Modulus 7 , specia...

あ、これすごいわ。「簡単なサンプル」を実行したら、即手元のゲームパッドで自機が動く。Input...

jp.rubyist.net 07 Apr '13, 12pm

arton 氏の ActiveScriptRuby では、1.8.7-p173 以降のバージョンに DXRuby1.0.4 が同梱されていますので、こちらを利用してる方は DXRuby の個別インストールは不要です。 それ以外の i386-ms...

Кстати, список «Concurrent Programming and Thre...

rubyweekly.com 05 Apr '13, 12pm

Securing Your Rails Application: A Webinar (April 9) On Tuesday, April 9th at 9AM Pacific Time, Bryan Helmkamp will be giv...

Code readability and Ruby

rubyflow.com 05 Apr '13, 3pm

Code readability and Ruby Posted by noelrap on April 05, 2013 — 0 comments Do you want to watch a discussion/rant on code ...

@RobotDeathSquad platforms

gembundler.com 11 Apr '13, 7pm

# setup adds gems to Ruby's load path Bundler.setup # defaults to all groups require "bundler/setup" # same as Bundler.set...