|
|
|
|
|
by JohnBooty
1297 days ago
|
|
This has been my experience as well. Ruby gives you footguns and you can certainly do ill-advised things... but in practice I just don't see it happening very often either in open source projects or in private corporate stuff. Why? Because IME there's rarely even a need to go down those paths at all, unless you are writing a framework or doing something else "meta." 99.99% of Ruby I have actually seen is either simple scripts or bog standard OO stuff. |
|
We do find such horrors lurking in the bowels of Rails, unsurprisingly. ActiveSupport clamps on to several fundamental modules, but Rails only inflicts the worst of its metaprogramming gymnastics either upon itself, or client objects/classes that expect a ton of magic (viz. models, controllers, views). When peeking at some of the machinery I'm sometimes unsure whether to be appalled or astounded.