Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Code Reuse: Penalty? Failure?

 
Jack Gold
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ken Boyd
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11943
212
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic