Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rules re: code that's not your own

 
Stefan Olson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The instructions state, "you must not submit any code that is not your own work."
Do you recommend following the spirit of the rule here or the letter of the rule?
For example, I've grown accustomed to extending a custom JDialog that has a center() method which centers the Dialog relative to the parent passed through the constructor. While I know how to write such code, I didn't. The implementation was fine so why bother? My SearchDialog and BookDialog each extend this class.
Forgive the nitpicky-type question, but it's been on my mind...
I'm thinking if the examples fall under the category of "common knowledge", it should be usable... sort of like how how can't trademark common phrases or patent the obvious, although these days, even that doesn't seem to be true.
 
James Hook
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My interpretation is that as long the major bits of code
(ie.
1) locking
2) criteriaFind)
in your project are your own, then the odd bit plagiarism
will be ok.
One site I have found useful is JavaAlmanac. This has several
pieces of code that can be copy and pasted - I also have copied
a piece of code that centres the form on the screen.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stefan,
Welcome to JavaRanch.
Since this is a "must" statement (and therefore non compliance could cause an automatic failure) I would recommend following the letter of the rule. It is just not worth the risk IMHO.
Regards, Andrew
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll second what Andrew said.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic