The Elements of Style in Ruby #12: proc vs Proc.new
People are often confused about the fact that there are two ways to created procs in Ruby - via Kernel#proc and Proc.new. Let’s see them in action:
People are often confused about the fact that there are two ways to created procs in Ruby - via Kernel#proc and Proc.new. Let’s see them in action:
2013 was a good year for me in many aspects. I’ll share here some of the programming-related achievements of mine over the year that made me somewhat proud o...
Projectile 0.10.0 is out!
Sometimes we’d like to build a new collection object from the elements of another collection. One trivial example would be element occurrence counting, whic...
Some Rubyists, when faced with the task of matching against the beginning or the end of a string, are prone to using ^ and $ in their regular expressions. Mo...