• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

How to do a citation for using open source code ?

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
Greenhorn
Posts: 5
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Marshal
Posts: 76440
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Marshal
Posts: 76440
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I presume you have already followed Daniel Georgescu’s suggestion.
 
The knights of nee want a shrubbery. And a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic