Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #15491
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | Lew <lewbloch@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: object oriented design question in context of Java program |
| Date | Thu, 21 Jun 2012 11:33:27 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 24 |
| Message-ID | <d2a85ebf-6ca3-4251-913f-8ffe1f7443a7@googlegroups.com> (permalink) |
| References | <c561248d-7f5c-4925-a23e-640de59a4541@t20g2000yqn.googlegroups.com> <jrvaja$ksj$1@dont-email.me> <jrvd8r$5e0$1@dont-email.me> |
| NNTP-Posting-Host | 69.28.149.29 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1340303607 28836 127.0.0.1 (21 Jun 2012 18:33:27 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Thu, 21 Jun 2012 18:33:27 +0000 (UTC) |
| In-Reply-To | <jrvd8r$5e0$1@dont-email.me> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T |
| User-Agent | G2/1.0 |
| Xref | csiph.com comp.lang.java.programmer:15491 |
Show key headers only | View raw
markspace wrote:
> markspace wrote:
>
> > We'd have to see the whole code base, or a large part of it, to
> > determine any further code smell.
>
>
> Forgot to add: Martin Fowler's Refactoring: Improving the Design of
> Existing Code is a good introduction to refactoring and code smell. If
> you can find your design in his code smell descriptions, then you might
> consider changing the design.
In /Effective Java/, Josh Bloch recommends to prefer composition to inheritance.
OP: You might be in a bad direction with inheritance ("is-a" relationship)
rather than composition ("has-a" relationship). You need to share details.
http://sscce.org/
Hand-waving and vague architectural generalities are all well and good,
but it sounds like your problems are in the details.
--
Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
object oriented design question in context of Java program J W <jjw101023@gmail.com> - 2012-06-21 04:42 -0700
Re: object oriented design question in context of Java program markspace <-@.> - 2012-06-21 07:20 -0700
Re: object oriented design question in context of Java program markspace <-@.> - 2012-06-21 08:06 -0700
Re: object oriented design question in context of Java program Lew <lewbloch@gmail.com> - 2012-06-21 11:33 -0700
csiph-web