Foundations of open source
What open source is, how licenses decide what you may do with code, and how to find your way around a codebase you did not write.
About 3 hours of study
Learning objectives
- Explain what open source is and who the people in a project are
- Compare permissive and copyleft licenses
- Follow one feature through an unfamiliar codebase
Lessons
- 1
What open source is
Code anyone may read, use, change and share: why people contribute, the roles in a project, and the files every project has.
- 2
Open-source licenses
What MIT, Apache, GPL and Creative Commons licenses allow, why code without a license is off limits, and how to check dependencies.
- 3
Reading a codebase
Find your way around code you did not write: start at the entry point, follow one feature, and use search and tests to learn.
Module practice
- Missing project filesEasy
- Score a READMEMedium
- Top contributors and bus factorHard
- Name the license familyEasy
- Read a license headerMedium
- Can the project ship?Hard
- Find the TODOsEasy
- List the definitionsMedium
- Draw the call graphHard