aspose file tools*
The moose likes Beginning Java and the fly likes How to do a citation for using open source code ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to do a citation for using open source code ?" Watch "How to do a citation for using open source code ?" New topic
Author

How to do a citation for using open source code ?

Lexington Smith
Ranch Hand

Joined: Sep 29, 2012
Posts: 67
I use a few lines of code, say a method or two from an open source project. The methods are quite simple (5-6 lines) and not something that could be considered intellectual property.
Since the methods are quite simple, can I change the contents and say that the code is mine ? It would almost be like changing what a few print statements say, but not that simple.

If I should not, then how do I acknowledge the author when I use a bit of his code in my code ?

Thanks in advance.


Daniel Georgescu
Greenhorn

Joined: Apr 30, 2011
Posts: 5

Read the license. If it is specified that the source code can be modified/redistributed/used in non commercial intentions. You should be able to change the code you want.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7651
    
  19

Lexington Smith wrote:The methods are quite simple (5-6 lines) and not something that could be considered intellectual property.

As I recall, QuickSort is about 10. Don't judge creativity by size.

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38363
    
  23
Winston Gutkowski wrote: . . . Don't judge creativity by size.

Winston
If creativity is related to size, that method is probably twice as creative as quick‑sort

Actually everything is intellectual property under copyright law.
Lexington Smith
Ranch Hand

Joined: Sep 29, 2012
Posts: 67
Winston Gutkowski wrote:
Lexington Smith wrote:The methods are quite simple (5-6 lines) and not something that could be considered intellectual property.

As I recall, QuickSort is about 10. Don't judge creativity by size.

Winston


Yeah, i meant the code does not really do anything like quick sort. Think of it like taking a password and logging you into an account with 5-6 lines of code.
No too great I suppose.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38363
    
  23
I presume you have already followed Daniel Georgescu’s suggestion.
 
Don't get me started about those stupid light bulbs.
 
subject: How to do a citation for using open source code ?