Hacker News new | ask | show | jobs
by eropple 3157 days ago
I pretty strongly disagree with the idea that Ruby encourages those bad habits. But Rails? Specifically, ActiveSupport? Yeah, totally. But, effectively, Rails is building a context-specific DSL for web apps that happens to be leaking methods into your code. This is much, much more a Rails problem than it is a Ruby one.

My standard web stack is grape, grape-swagger, grape-entity, and Sequel (with some handy libraries like Ougai kicking around) and I don't run into any problems like that.

1 comments

ActiveSupport does that because Ruby encourages it.
Ruby allows it. Ruby allows a lot of things. So does C++. So does JavaScript. So does Java.

Deciding to do it is a question of taste.

I think it goes further than that unless you don't consider the documentation and standard library sufficiently encouraging.