If you aren’t familiar with the term, refactoring is the act of improving the quality of code without changing what it does. This will make your code a lot easier to work with. In this post you will learn some common refactoring techniques, let’s get started!
Changing Ruby methods and classes after their definition is a powerful tool for any Rubyists. But Monkey Patching is scary and full of danger, use Refinements instead. Ruby Refinements are the sleek alternative to huge changes such as Monkey Patches.
Ruby 2.3.0 will be released this Christmas, and the first preview release was made available a few weeks ago. Nithin Bekal goes through some of the new features thathhave been introduced.
ActiveRecord will try hard to infer the inverse relation for your associations, but you may benefit from setting the inverse_of option wherever possible
Logs can quickly become a noisy mess. Digging through logs while debugging a critical issue can become a hair-pulling experience. Don't fret - there are some terrific tools available today to turn your log streams into beautiful, useful data sources.