|
On 03/21/2001 at 11:40:46 AM, "Stone, Brad V (TC)" <bvstone@taylorcorp.com> wrote: But all it does is encapsulate the looping I have in my program right now. I'm confused as to if your prior comment was how I instantiate the Table object or how I'm formatting the ML or both. --- end of excerpt --- I wasn't commenting about the instantiation, only the fact that generating the ML is probably a behavior of the table instead of a behavior of the user of a table. Re: encapsulate the looping. Yeah, but actually, this is a good thing. Plus, I think it does more than that. It helps encapsulates the nastiness about accessing table internals (fields) directly, and the logic of generating markup language from a table (behavior of a table). The more you can change the: "using object1, get a contained object from it and use or modify the contained object" into "using object1, use or modify object1" the better OO design you have. In general: By modifying or using a contained object, you are actually modifying or using the container (in this case), and you are theoretically bypassing things the container should know about and have control over. Its not clear to me if in this case a Field is something that actually should stand alone and the table cares not what you do with its fields. "The stuff we call "software" is not like anything that human society is used to thinking about. Software is something like a machine, and something like mathematics, and something like language, and something like thought, and art, and information... but software is not in fact any of those other things." Bruce Sterling - The Hacker Crackdown Fred A. Kulack - AS/400e Java and Java DB2 access, Jdbc, JTA, etc... IBM in Rochester, MN (Phone: 507.253.5982 T/L 553-5982) mailto:kulack@us.ibm.com Personal: mailto:kulack@bresnanlink.net AOL Instant Messenger: Home:FKulack Work:FKulackWrk +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.