SlideShare a Scribd company logo
Developer
guidelines for
using third-party
code



Mark Aberdour
Head of Learning Platforms
Why it matters
It’s good to use code found on the web. It can be very robust and
well tested, and generally makes a programmer’s life easier.
However, third party code comes with some licensing dangers
which can seriously impact both employee and employer if the law
is broken.
While most code libraries are fine to use, some do require more
care than others to stay on the right side of the law.
This quick guide is aimed to help Epic programmers make the right
decisions on what code to use in their projects.
By necessity this guide contains some simplifications of what is a
complex legal area. If in doubt, please just ask.
License types
Most code found on the web is open source. There are three
main types of open source license, and these dictate what we
can and can’t do with the code.

   License type           Commercial use
   Strongly-protective/   CANNOT use in closed-
   copyleft (GPL/AGPL)    source, commercial products
   Weakly-protective      Can use in closed-source,
   (LGPL)                 commercial products WITH CARE
   Permissive             FREE TO USE in closed-source,
   (Apache, MIT, BSD)     commercial products
   Non-OS license         Terms will vary so read the license!
Licenses: strongly protective
Licenses: GPL, AGPL
Implications of using code:
If the code is used in a product that is redistributed, then the entire
codebase must inherit the same license. For this reason, these are
also known as viral licenses.
Epic policy:
Do NOT use any GPL or AGPL licensed code without getting
permission first, unless the project you are working on is already GPL or
AGPL licensed.
Licenses: weakly protective
Licenses: LGPL
Implications of using code:
This license is commonly used for code libraries. It allows the code to
be used in closed source, commercial products; however, any
modifications to the library must be fed back upstream to the
creator.
Epic policy:
It is fine to use LGPL licensed code, but any changes MUST be fed
back to the library creator, and the developer should manage this
process.
Licenses: permissive
Licenses: Apache, MIT, BSD
Implications of using code:
Allows the code to be used in closed source, commercial products
with no obligations. Some licenses have an ‘attribution clause’ which
simply asks that the original creator is credited.
Epic policy:
It is absolutely fine to use any Apache, MIT or BSD licensed code.
Licenses: non-open source
Licenses: Custom license or ‘terms and conditions’ page
Implications of using code:
This will depend entirely on the terms that the creator has outlined.
Sometimes there is just a statement on the webpage with some brief
terms of use.
Epic policy:
Find the terms and conditions or statement of use and make an
appropriate decision. If in doubt, please ask for assistance. Take a
dated screenshot in case the terms change over time.
Three questions to always ask
1. What are the license terms of the code you are thinking of
using?
Be sure to find out what license it is released under. If it’s not open
source or if you cannot find a license, then contact a senior
manager for approval to reuse it.
2. What are the license terms of the Epic project you are working
on?
This will impact what licenses you can use. For example, the
webinar plug-in we built for Moodle is GPL anyway.
3. Is the product for just one customer, or will it be distributed to
many?
Open source license terms kick in when a product is redistributed.
So if the code is for the private use of a single customer, it is fine to
reuse code from ANY license, GPL included.
Re-use conventions
The following are best practices that you should follow every time
you reuse third party code. If you get in the habit of doing this, you
should always be on the right side of the law.
- Always retain the original license info in the code files.
- Always credit the original author. Even if is not always required, it
is the right thing to do.
- If you make modifications, ensure they carry prominent notices.
- If you make modifications, send the amends back to the original
author. Again, it is not always required, but it’s the right thing to
do.
- Finally, please keep a record in the project folder of all third-party
code used and include the license type and source URL.
Detailed
license info
This is a PERMISSIVE license.
                                  We can use, modify and redistribute
Apache v2                         this code as part of a commercial
                                  product.

license                           The license info must be retained in
                                  the file.
                                  Any modifications must carry
                                  prominent notices.
                                  If the work includes a NOTICE text
                                  file containing author attributions,
                                  then those attribution notices must
                                  be provided with the new work.

http://opensource.org/licenses/Apache-2.0
This is a PERMISSIVE license.
                                     We can use, modify and
                                     redistribute this code as part of a
                                     commercial product.

MIT license                          There are no obligations at all,
                                     therefore we can do what we like
                                     with it.




http://opensource.org/licenses/MIT
This is a PERMISSIVE license.
                                 This is similar to the MIT license,

BSD 3-clause                     with the addition of a third clause
                                 that says we cannot use the
                                 author's organisation name or
license                          any contributor names to
                                 promote the product.
                                 The BSD-2 clause license is newer,
                                 omits the third clause and is
                                 roughly equivalent to the MIT
                                 license.




http://opensource.org/licenses/BSD-3-Clause
This is a WEAKLY PROTECTIVE
                                   license; reuse requires some care.

LGPL v3                            We can use, modify and
                                   redistribute this code as part of a
                                   commercial product.
license                            We MUST include a notice that
                                   the library is used (e.g. in a
                                   NOTICE file) within the product
                                   and include copies of the GPL
                                   and LGPL (but these won't apply
                                   to the whole product, don’t
                                   worry!).
                                   If we make modifications, then
                                   the library must also be released
                                   under the LGPL.
http://opensource.org/licenses/lgpl-3.0.html
This is a COPYLEFT license; reuse is
                                   highly restrictive.

GPL v2/v3                          We CANNOT use, modify or
                                   redistribute this code as part of a
                                   commercial product.
license                            If we redistribute the derivative
                                   work then the entire product must
                                   itself inherit the GPL.




http://opensource.org/licenses/gpl-license
This is a COPYLEFT license; reuse is
                                 highly restrictive.

AGPL v3                          We CANNOT use, modify or
                                 redistribute this code as part of a
                                 commercial product.
license                          If we redistribute the derivative
                                 work, then the entire product
                                 must itself inherit the GPL.
                                 Redistribution in this case includes
                                 applications accessed remotely
                                 from a server (e.g. Cloud/SaaS
                                 services).



http://opensource.org/licenses/AGPL-3.0
Further
information
If you have any questions at all
regarding the above or any licenses we
have not covered, please contact:
Mark Aberdour
Email:
maberdour@epiclearninggroup.com
Twitter: @maberdour

More Related Content

PDF
An Open Source Workshop
PDF
Joomladay 2014 - Open source licenses
PPT
Open Source Software Licenses
PPTX
Hidden gotcha’s of various open source licenses
PDF
Open Source Licenses and Tools
PDF
Top Open Source Licenses Explained
PDF
IPO Presentation 2012
PDF
AtomPub, beyond blogs
An Open Source Workshop
Joomladay 2014 - Open source licenses
Open Source Software Licenses
Hidden gotcha’s of various open source licenses
Open Source Licenses and Tools
Top Open Source Licenses Explained
IPO Presentation 2012
AtomPub, beyond blogs

Similar to Developer guidelines for using third-party code (20)

PDF
fg.workshop: Opensource licenses
PPTX
Open Source Licensing: Types, Strategies and Compliance
PPT
Introduction To Open Source Licenses
KEY
Using Open Source for Enterprise
PDF
"Open Source licensing and software quality" by Monty Michael Widenius @ eLib...
PPTX
Software licenses: short unofficial overview
PDF
Open Source Business Models
PPTX
Legal-Considerations-for-Open-Source-Software-Creative-Commons-Licenses_Sprin...
PDF
Understanding Open Source & GPL
PPTX
Open Source Licensing
PDF
Conversation on Open Source - CU Boulder - Feb 2017
PPTX
Open source software for IoT – The devil’s in the details
PPT
Open source licenses
PPT
Top Ten Open Source Licenses
PDF
Overview of basic open-source licenses
PDF
"Open Source and Sun" by Vassilis Boulogiorgos @ eLiberatica 2007
PDF
Intellectual Property Issues in Open Source
PDF
Degrees of Freedom
PDF
Licencias de código
PDF
01-15 Bay Area OSS Meetup: Free and Open Source Software Licensing Overview
fg.workshop: Opensource licenses
Open Source Licensing: Types, Strategies and Compliance
Introduction To Open Source Licenses
Using Open Source for Enterprise
"Open Source licensing and software quality" by Monty Michael Widenius @ eLib...
Software licenses: short unofficial overview
Open Source Business Models
Legal-Considerations-for-Open-Source-Software-Creative-Commons-Licenses_Sprin...
Understanding Open Source & GPL
Open Source Licensing
Conversation on Open Source - CU Boulder - Feb 2017
Open source software for IoT – The devil’s in the details
Open source licenses
Top Ten Open Source Licenses
Overview of basic open-source licenses
"Open Source and Sun" by Vassilis Boulogiorgos @ eLiberatica 2007
Intellectual Property Issues in Open Source
Degrees of Freedom
Licencias de código
01-15 Bay Area OSS Meetup: Free and Open Source Software Licensing Overview
Ad

More from Epic (20)

PPTX
Holistic design - An integrated approach to accelerate performance improvement
PDF
User Experience vs. the Visual Designer - LINE Communications
PPTX
iMoot – Tin Can in Moodle
PPTX
20 tips for mobile learning in Moodle – Moodlemoot 2014
PPTX
Using mobiles to support active learning with Moodle – Moodlemoot 2014
PPTX
Tin Can Learning Design – Andrew Downes
PPTX
What can we learn from the future? - Imogen Casebourne and Lars Hyland @ Lear...
PPTX
A learning platform just for you - Mark Aberdour @ Learning Technologies
PPT
LearningNow: performance support – Simon Martin
PPTX
Lars Hyland – What's stopping performance support?
PPTX
LearningNow: performance support – Jane Hart
PPTX
LearningNow: performance support – Imogen Casebourne
PPTX
LearningNow: performance support – Laura Overton
PPTX
Putting the smart into smart phone with performance support
PPTX
Induction strategies that work
PPTX
Induction needs to change
PPTX
Rethinking induction design
PPTX
Bringing new managers on board
PPTX
What works: five mobile learning success stories
PPTX
Introduction to Open Source
Holistic design - An integrated approach to accelerate performance improvement
User Experience vs. the Visual Designer - LINE Communications
iMoot – Tin Can in Moodle
20 tips for mobile learning in Moodle – Moodlemoot 2014
Using mobiles to support active learning with Moodle – Moodlemoot 2014
Tin Can Learning Design – Andrew Downes
What can we learn from the future? - Imogen Casebourne and Lars Hyland @ Lear...
A learning platform just for you - Mark Aberdour @ Learning Technologies
LearningNow: performance support – Simon Martin
Lars Hyland – What's stopping performance support?
LearningNow: performance support – Jane Hart
LearningNow: performance support – Imogen Casebourne
LearningNow: performance support – Laura Overton
Putting the smart into smart phone with performance support
Induction strategies that work
Induction needs to change
Rethinking induction design
Bringing new managers on board
What works: five mobile learning success stories
Introduction to Open Source
Ad

Developer guidelines for using third-party code

  • 1. Developer guidelines for using third-party code Mark Aberdour Head of Learning Platforms
  • 2. Why it matters It’s good to use code found on the web. It can be very robust and well tested, and generally makes a programmer’s life easier. However, third party code comes with some licensing dangers which can seriously impact both employee and employer if the law is broken. While most code libraries are fine to use, some do require more care than others to stay on the right side of the law. This quick guide is aimed to help Epic programmers make the right decisions on what code to use in their projects. By necessity this guide contains some simplifications of what is a complex legal area. If in doubt, please just ask.
  • 3. License types Most code found on the web is open source. There are three main types of open source license, and these dictate what we can and can’t do with the code. License type Commercial use Strongly-protective/ CANNOT use in closed- copyleft (GPL/AGPL) source, commercial products Weakly-protective Can use in closed-source, (LGPL) commercial products WITH CARE Permissive FREE TO USE in closed-source, (Apache, MIT, BSD) commercial products Non-OS license Terms will vary so read the license!
  • 4. Licenses: strongly protective Licenses: GPL, AGPL Implications of using code: If the code is used in a product that is redistributed, then the entire codebase must inherit the same license. For this reason, these are also known as viral licenses. Epic policy: Do NOT use any GPL or AGPL licensed code without getting permission first, unless the project you are working on is already GPL or AGPL licensed.
  • 5. Licenses: weakly protective Licenses: LGPL Implications of using code: This license is commonly used for code libraries. It allows the code to be used in closed source, commercial products; however, any modifications to the library must be fed back upstream to the creator. Epic policy: It is fine to use LGPL licensed code, but any changes MUST be fed back to the library creator, and the developer should manage this process.
  • 6. Licenses: permissive Licenses: Apache, MIT, BSD Implications of using code: Allows the code to be used in closed source, commercial products with no obligations. Some licenses have an ‘attribution clause’ which simply asks that the original creator is credited. Epic policy: It is absolutely fine to use any Apache, MIT or BSD licensed code.
  • 7. Licenses: non-open source Licenses: Custom license or ‘terms and conditions’ page Implications of using code: This will depend entirely on the terms that the creator has outlined. Sometimes there is just a statement on the webpage with some brief terms of use. Epic policy: Find the terms and conditions or statement of use and make an appropriate decision. If in doubt, please ask for assistance. Take a dated screenshot in case the terms change over time.
  • 8. Three questions to always ask 1. What are the license terms of the code you are thinking of using? Be sure to find out what license it is released under. If it’s not open source or if you cannot find a license, then contact a senior manager for approval to reuse it. 2. What are the license terms of the Epic project you are working on? This will impact what licenses you can use. For example, the webinar plug-in we built for Moodle is GPL anyway. 3. Is the product for just one customer, or will it be distributed to many? Open source license terms kick in when a product is redistributed. So if the code is for the private use of a single customer, it is fine to reuse code from ANY license, GPL included.
  • 9. Re-use conventions The following are best practices that you should follow every time you reuse third party code. If you get in the habit of doing this, you should always be on the right side of the law. - Always retain the original license info in the code files. - Always credit the original author. Even if is not always required, it is the right thing to do. - If you make modifications, ensure they carry prominent notices. - If you make modifications, send the amends back to the original author. Again, it is not always required, but it’s the right thing to do. - Finally, please keep a record in the project folder of all third-party code used and include the license type and source URL.
  • 11. This is a PERMISSIVE license. We can use, modify and redistribute Apache v2 this code as part of a commercial product. license The license info must be retained in the file. Any modifications must carry prominent notices. If the work includes a NOTICE text file containing author attributions, then those attribution notices must be provided with the new work. http://opensource.org/licenses/Apache-2.0
  • 12. This is a PERMISSIVE license. We can use, modify and redistribute this code as part of a commercial product. MIT license There are no obligations at all, therefore we can do what we like with it. http://opensource.org/licenses/MIT
  • 13. This is a PERMISSIVE license. This is similar to the MIT license, BSD 3-clause with the addition of a third clause that says we cannot use the author's organisation name or license any contributor names to promote the product. The BSD-2 clause license is newer, omits the third clause and is roughly equivalent to the MIT license. http://opensource.org/licenses/BSD-3-Clause
  • 14. This is a WEAKLY PROTECTIVE license; reuse requires some care. LGPL v3 We can use, modify and redistribute this code as part of a commercial product. license We MUST include a notice that the library is used (e.g. in a NOTICE file) within the product and include copies of the GPL and LGPL (but these won't apply to the whole product, don’t worry!). If we make modifications, then the library must also be released under the LGPL. http://opensource.org/licenses/lgpl-3.0.html
  • 15. This is a COPYLEFT license; reuse is highly restrictive. GPL v2/v3 We CANNOT use, modify or redistribute this code as part of a commercial product. license If we redistribute the derivative work then the entire product must itself inherit the GPL. http://opensource.org/licenses/gpl-license
  • 16. This is a COPYLEFT license; reuse is highly restrictive. AGPL v3 We CANNOT use, modify or redistribute this code as part of a commercial product. license If we redistribute the derivative work, then the entire product must itself inherit the GPL. Redistribution in this case includes applications accessed remotely from a server (e.g. Cloud/SaaS services). http://opensource.org/licenses/AGPL-3.0
  • 17. Further information If you have any questions at all regarding the above or any licenses we have not covered, please contact: Mark Aberdour Email: maberdour@epiclearninggroup.com Twitter: @maberdour