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

Lessons

  1. 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. 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. 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

Module quiz

1. Which file in a project explains what it is and how to run it?
2. Which of these licenses is permissive?
3. What is the usual first step when you read a program you do not know?
4. Your MIT project wants to use a GPL-3.0 library. What is the issue?
5. Which Git tool shows who changed each line of a file last?
6. A project's contributors made 100 commits: one person made 60, two made 15 each and ten made 1 each. The bus factor is…

Issues, commits and pull requests ›