The Daily Web

Developer stories, quotes and links by @vestimir

Follow @thedailyweb


Refining Ruby - Introduction to Ruby's refine »

Monkey-patching can be very useful, and many patterns in Ruby are built around the ability to modify classes. It can also cause problems if a library patches code in a way the user does not expect (or want), or if two libraries try to apply conflicting patches. Sometimes, you simply don’t want patches to apply globally, and this is where refinements come in.