Link Details

Vote early, vote often! When you help pick the links, you'll like DZone better. Login and vote now.
Link 94781 thumbnail
User 119725 avatar

By PeterStofferis
via infoq.com
Published: Jul 14 2008 / 13:50

Ruby's Open Classes are powerful - but can easily be misused. This article looks at how to minimize the risk of opening classes, alternatives, and how other languages provide similar capabilities.
  • 9
  • 0
  • 866
  • 265

Comments

Add your comment
User 107114 avatar

daniel replied ago:

0 votes Vote down Vote up Reply

There's really no way to "fix" open classes; they are an inherently broken concept. With that said, they're incredibly useful. :-) I've been guilty of employing them more than once myself. The trick is to use moderation and good sense.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)