SCJP 1.4 | SCJD 1.6 | Visit my website | Author of the book Apache MyFaces 1.2 Web Application Development
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
SCJP 1.4 | SCJD 1.6 | Visit my website | Author of the book Apache MyFaces 1.2 Web Application Development
Thanks,<br /> <br />Paul Croarkin<br />SCEA 5, SCWCD, SCJP
SCJP 1.4 | SCJD 1.6 | Visit my website | Author of the book Apache MyFaces 1.2 Web Application Development
Thanks,<br /> <br />Paul Croarkin<br />SCEA 5, SCWCD, SCJP
Thanks,<br /> <br />Paul Croarkin<br />SCEA 5, SCWCD, SCJP
Originally posted by Bart Kummel:
The point is that the "Item" class was introduced as a way to avoid repeating code. So this was an example of how a wrong approach of preventing duplicate code could cause another problem...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
SCJP 1.4 | SCJD 1.6 | Visit my website | Author of the book Apache MyFaces 1.2 Web Application Development
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
SCJP 1.4 | SCJD 1.6 | Visit my website | Author of the book Apache MyFaces 1.2 Web Application Development
Books: Pragmatic Unit Testing in Java, Agile Java, Modern C++ Programming with TDD, Essential Java Style, Agile in a Flash. Contributor, Clean Code.
Originally posted by Bart Kummel:
Hi Robert C. Martin,
I see you have a section on "Don't Repeat Yourself" in your book. I think this is a very useful rule of thumb. But there is a danger in it. The danger is that you make a generic solution for everything. Those generic solutions can get too generic and very complicated. How do you find a balance between not repeating yourself and not making everythin generic?
Best regards,
Bart Kummel
---<br />Uncle Bob.
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|