Archive for 2012
Friday afternoon, Enlarge Your Ruby is back. So, is your Friday afternoon boring ? What about refactoring ? It’s time to learn having fun doing that, turning pretty bad code into good one and even into great one.
Ben Orenstein (@r00k) did a great live refactoring on stage at Aloha Ruby Conf in October 2012. Worth seeing it.
This is the first post in Enlarge Your Ruby, let’s start with an heavy one. Ruby on Rails gives a structure that helps organize our code. But when the app grows, we drown with hundreds of controllers, models, views. All this stuff is mixed. Tests take forever to run.
Let’s see how to Divide and Conquer with embedded gems and engines.
Friday afternoon, time passes slowly… What about watching a good talk or conference ? Something technical. Something great. Something about Ruby, Rails or Web development in general. Something that improves yourself.
In a Ruby on Rails app, there are settings. Many settings. Some can vary from development to production. Some are private as they may be passwords, secret tokens…
This is how I deal with those, using the tiny lib SettingsLogic.