Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #15491
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: object oriented design question in context of Java program |
| Date | 2012-06-21 11:33 -0700 |
| Organization | http://groups.google.com |
| 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> |
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