Hacker News new | past | comments | ask | show | jobs | submit login

> Also, a side question: is it normal/considered a best practice in ruby to monkey-patch built-in libraries like that?

No, it's not considered to be good practice. I think it's generally frowned on by more experienced folk.

However, ActiveSupport (which is part of Rails) does a lot of monkey-patching of the basic Ruby classes in this way, and that probably helps to perpetuate monkey-patching among newer developers.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: