Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14041
| From | markspace <-@.> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Learning Java |
| Date | 2012-04-29 16:34 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <jnkj64$ctm$1@dont-email.me> (permalink) |
| References | (3 earlier) <bBnjr.1802$yC6.1600@newsfe08.iad> <4f8e21b4$0$293$14726298@news.sunsite.dk> <Nrwjr.2990$ay5.1551@newsfe14.iad> <4f9ca365$0$295$14726298@news.sunsite.dk> <KPbnr.63422$T5.37504@newsfe13.iad> |
On 4/29/2012 7:00 AM, Arved Sandstrom wrote: > What's been missing is a > general acknowledgement that we write a *lot* of procedural Java code, > and maybe work on ways to formalize how to do that well. DCI is one > approach. Hmm, perhaps. However, I had to learn OOD on my own (I graduated before it came fully into vogue), and I've always been keenly aware that the need for procedural code in OOD seems to be general accepted. To go back to one of the earliest sources, if you pick up a copy of Bjarne Stroustrup's The C++ Language, there's a chapter (#23) that explains his basic OOD philosophy. As a pedagogical example, he designs a simple parser. First, he makes some simple objects that correspond to the leaf nodes in a parse tree. Then he designs the actual tree itself. Then he says "Now I need to make it DO something." And he makes a class that he calls a "driver" which is all procedural code and implements the actual use cases of his simple parser, using the objects he previously created. Iirc the Rational design process has a similar division. I personally see procedural elements in design patterns like MVC, where the controllers appear to me to be simply drivers like Stroustrup's driver (although controllers do preform a more specialized kind of procedural function). I think Arne post here a while back about a design pattern that recognized procedural bits in an overall design pattern and called them "services." Etc. I think procedural method in OOD are recognized, but the may not be specifically called out. It's assumed that you just recognize "Oh s/he's writing some procedural code here." A lot of writing requires the user to make a judgement how procedural needs to be, and design appropriately. Reference objects tend to have longer procedural bits, but that doesn't obviate the need for pure procedural code when required. App start up and shutdown, for example, tend to be purely procedural, and there's not reason to make them otherwise.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Learning Java Steve Graham <jsgrahamus@yahoo.com> - 2012-04-17 15:03 -0600
Re: Learning Java markspace <-@.> - 2012-04-17 14:33 -0700
Re: Learning Java glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-04-17 21:50 +0000
Re: Learning Java Arne Vajhøj <arne@vajhoej.dk> - 2012-04-17 19:21 -0400
Re: Learning Java markspace <-@.> - 2012-04-17 16:47 -0700
Re: Learning Java glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-04-18 02:30 +0000
Re: Learning Java Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 21:56 -0400
Re: Learning Java Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-17 21:07 -0300
Re: Learning Java Arne Vajhøj <arne@vajhoej.dk> - 2012-04-17 22:06 -0400
Re: Learning Java Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-18 07:11 -0300
Re: Learning Java Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-04-18 06:47 -0500
Re: Learning Java Lew <lewbloch@gmail.com> - 2012-04-18 10:19 -0700
Re: Learning Java Lew <lewbloch@gmail.com> - 2012-04-18 10:20 -0700
Re: Learning Java glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-04-18 21:10 +0000
Re: Learning Java Gene Wirchenko <genew@ocis.net> - 2012-04-18 15:01 -0700
Re: Learning Java Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 22:11 -0400
Re: Learning Java Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-29 11:00 -0300
Re: Learning Java Lew <noone@lewscanon.com> - 2012-04-29 11:44 -0700
Re: Learning Java markspace <-@.> - 2012-04-29 16:34 -0700
Re: Learning Java Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-30 20:52 -0300
Re: Learning Java Arne Vajhøj <arne@vajhoej.dk> - 2012-05-05 18:17 -0400
Re: Learning Java Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-05-06 15:49 -0300
Re: Learning Java Gene Wirchenko <genew@ocis.net> - 2012-05-07 09:50 -0700
Re: Learning Java RedGrittyBrick <RedGrittyBrick@spamweary.invalid> - 2012-04-19 15:30 +0100
Re: Learning Java Arne Vajhøj <arne@vajhoej.dk> - 2012-04-17 19:26 -0400
Re: Learning Java Patricia Shanahan <pats@acm.org> - 2012-04-17 19:08 -0700
Re: Learning Java Roedy Green <see_website@mindprod.com.invalid> - 2012-04-26 16:06 -0700
Re: Learning Java Steve Graham <jsgrahamus@yahoo.com> - 2012-05-15 17:40 -0600
csiph-web