• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Cut and paste

 
HS Thomas
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would it be expected not to do any cut-and paste using EJBs ?
Thanks.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by cut and paste?
 
HS Thomas
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if you see a nifty bit of SQL one could be tempted to cut and paste it into your own work.
I was just wondering whether in EJB applications , if you are following OO strictly there would be no Cut and Pasting of any code ? Or, safely, Copy and Paste ?
regards
[ October 16, 2003: Message edited by: HS Thomas ]
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cutting & pasting has nothing to do with OO. It is a bad idea because it violates the Once and only once principle. This is a first order principle of software construction.
D.
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may also want to check CopyAndPasteProgramming
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!