Please, Ruby devs, join() your paths

Like in most programming languages, when you write paths in ruby, e.g. to open a file you pass in a string:

filename="bar.txt"File.open("/home/foo/"+filename)

This is a serious smell for several reasons. Not, as people often
believe, just to cater the few Ruby developers on Windows (Windows knows how to follow
"/foo/bar/" paths just as well as "\foo\bar" nowadays).

But mostly because this does not scale, gets convoluted real quick. Like
so:

About the author: Bèr Kessels is an experienced webdeveloper with a great passion for
technology and Open Source. A golden combination to implement that technology in a good and efficient
way. Follow @berkes on Twitter. Or read more about Bèr.