Writing Self-Confident Code

A common idiom in ruby is to call a method only if its receiver is not nil:


Various libraries exist for making this a little more convenient. You can use andand, or if you are using Facets you can use ergo. And seriously, you should be using them — they make your […]