From: bbense+comp.lang.ruby.Sep.26.02@... Date: 2002-09-27T04:36:24+09:00 Subject: Ruby program design question ( Pattern or AntiPattern ?) -----BEGIN PGP SIGNED MESSAGE----- - - I find myself repeating this kind of pattern over and over again. I'm wondering if it's a good sign or a bad one. Here's the pattern. Write a simple generic ruby class to interface to something. In a specific program, write a Wrapper class that essentially has the same methods as the simple class, but includes a lot of program specific cruft... More specifically, it does not subclass the original class. - - I think this is good in that I get to reuse the simple class over and over again, but I'm wondering if I'm just not making my simple classes generic enough. This pattern fits my design style of "bottom-up" programming, but I can see it getting very redundant once you get beyond a certain level of complexity. It suggests to me that I need to rexamine something but I can't figure out what to start looking at. - - Booker C. Bense -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBPZNeYGTWTAjn5N/lAQHaXQQAgTcZ05+njSKazKaWaJ7drWYfOsdgddzo 3qLamlzELVRSURhBF3BTZoZJdICjEyoi4FeCHKrYfzuGJuZGT4CZr7FsSkN/WPCi ERz38gnEK2hroR78mMitVYiH/I85bFUcPOIZ6h64GZ1MmC4f/BpicUrwdu6+ZBMK ZNCsvmWDd3Q= =wu2t -----END PGP SIGNATURE-----