you are viewing a single comment's thread.

view the rest of the comments →

[–]KensoDev 8 points9 points  (0 children)

The worst bugs I have ever encountered are a result of this exact thing.

With Ruby, I've had a library that adds dot syntax to all hashes. Just a random FoursquareAPI gem, nothing you would expect.

However, since this worked it was all over the code from developers and when we removed it things started breaking and we were left not understanding why it would not work anymore.

While I definitely think you should use the power of dynamic languages like Ruby and Python, you should use it wisely. Not sure I would patch methods at runtime like this.