"And one reason many people consider Java “better than Ruby” is because you cannot open base classes like String in Java?"
Do people really say this? The ability to monkeypatch classes is one of Ruby's many strengths. It would only add unnecessary complexity if there were any "special case" classes. I guess it's somewhat helped by the fact that people generally modify base classes responsibly.
Rspec is one example of how this is used to great effect:
Do people really say this? The ability to monkeypatch classes is one of Ruby's many strengths. It would only add unnecessary complexity if there were any "special case" classes. I guess it's somewhat helped by the fact that people generally modify base classes responsibly.
Rspec is one example of how this is used to great effect: