Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1940
| From | "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: loop through all cont |
| Message-ID | <1183473549.174123.137390@n2g2000hse.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <f5kk831b0oalfokptf872j2fsnlovu7vur@4ax.com> |
| Date | 2011-04-27 15:36 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui On Jul 3, 2:38 pm, Roedy Green <see_webs...@mindprod.com.invalid> wrote: > > It means your client code is terser and easier to decipher. > What you write about is certainly provides instant gratification but what Delphi or Eiffel does (or .NET does with custom properties) isn't very OO at all! Mutator and accessors methods involve return types; true objects don't return values, through their messaging they know where the data lives. In the case of Delphi, where ComponentCount is used, 99 times out of 100, there is usually an if-then-else hell which goed along for the ride as the developer has to test for component type as they iterate though the collection of components on the form... all very smelly and not better in the long run. With regard to ease, that's arguable given the complexity of the project. A programmer who is liberal in their abuse of mutator/ accessors can easily get carried away with classes to hold all of the offending methods. What I wrote about earlier is going to be scrapped once the schedule supports some serious refactoring. I just needed a band aid in the meantime. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar
loop through all controls "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: loop through all cont "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: loop through all cont "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: loop through all cont "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:35 +0000
Re: loop through all cont "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: loop through all cont "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
csiph-web