2

I am not using Rails, but I'm using Sinatra, Sequel and some asynchronous messaging library. I am looking for some recommendation about how to do the wiring.

In a Java world, my natural choice would have been Spring. But I know Ruby is different, and I've been reading this question about IoC in dynamic languages and this nice post from Fabio Kung, which make sense.

What I am missing is the practical side of the solution. I am looking for an elegant solution to manage my application level wiring in a way that is readable, concise and allows me to test and eventually re-wire my application components in test-specific ways.

Is there any reference about how to manage application configuration? Or any specific project I should have a look to?

Community
  • 1
  • 1
ZioBrando
  • 270
  • 1
  • 6
  • By the way I am also having a look to [Jamis Buck video from RubyConf 2008](http://rubyconf2008.confreaks.com/recovering-from-enterprise.html) and feeling somewhat stupid :-) – ZioBrando Dec 17 '12 at 11:02
  • This is not a good fit for Stack Overflow. Perhaps it would fair better on http://programmers.stackexchange.com/, which is more suited to white-board type discussions. – the Tin Man Dec 17 '12 at 15:25
  • You might be right... :-) can I migrate it, or do I need some external intervention? – ZioBrando Dec 18 '12 at 09:15

1 Answers1

1

Here are a few resources that I would consider for app configuration:

https://github.com/markbates/configatron

http://railscasts.com/episodes/85-yaml-configuration-file

https://github.com/binarylogic/settingslogic

Unixmonkey
  • 18,485
  • 7
  • 55
  • 78