aspose file tools *
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Code Reuse:  Penalty?  Failure? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Code Reuse:  Penalty?  Failure?" Watch "Code Reuse:  Penalty?  Failure?" New topic
Author

Code Reuse: Penalty? Failure?

Jack Gold
Ranch Hand

Joined: Feb 04, 2005
Posts: 85
Much of the Denny's DVD MVC pattern, connection dialog, and Table Model can be reused with tweaks.

I find myself reusing alot of this code. Does this introduce the possibilty of failure?


SCJP 1.4<br />SCJD <br />SCWCD (Studying)
Ken Boyd
Ranch Hand

Joined: Dec 10, 2003
Posts: 329
I don't think so..first place they have to compare line by line.. I don't think they will do that unless you cut and paste copyright code of SUN!!


SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11537
    
102

Hi Jack,

Denny's DVD (and other similar assignments) are deliberately written so that they cannot be used without the tweaks you mentioned. Putting the tweaks in shows that you understood the code, and have made it your own.

There is also a limit on how much truly original code & design can be used when Sun have strict guidelines as to what must appear in the user interface. Using design patterns is a good thing, and makes it easier for your code to be maintained. But then how many ways can the MVC pattern be applied .

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Code Reuse: Penalty? Failure?