SlideShare a Scribd company logo
1 of 31
Download to read offline
Contributing to 
Open Source 
Daniel Stenberg, October 16th 2014
Agenda 
About FOSS 
How FOSS works 
Two examples 
The first patch
Please ask! 
Feel free to interrupt and ask at any time!
Daniel Stenberg 
Email: daniel@haxx.se 
Twitter: @bagder 
Web: daniel.haxx.se 
Blog: daniel.haxx.se/blog
FOSS history of Daniel 
• 1991 - Discovered Unix (AIX), working for IBM 
• Wow, there's a lot of source code given away free by cool people! 
• 1994 – an IRC bot called Dancer was my first “own” project 
• ... 
• 2014 – I'm employed to work entirely on open source software
What is Open Source?
I'll skip 
•history 
•how Open Source conquers the world 
•why people participate
Definition 
Open source software is software that can be freely 
used, changed, and shared (in modified or 
unmodified form) by anyone. 
“Free software” means software that 
respects users' freedom and 
community. Roughly, it means that 
the users have the freedom to run, 
copy, distribute, study, change and 
improve the software.
Not defined 
•Which license – 100s to pick from 
• Collaboration – if at all or how 
• How to get the code 
• How to figure out how things work 
• How to contribute changes 
• How to get binaries or packages built from 
the code 
• How to behave and accepted behavior 
•Which (human) language to use 
• ...
Common practices 
• A “project” develops one or more “products” 
• Anyone can join an open source project 
• A limited set of core people can “accept” changes 
•Meritocracies – those who do and can things get more to do and say 
• A project usually has a web site explaining the project or the 
product(s) 
• Some projects work under “Umbrella organizations” 
•Most projects are small teams with volunteers 
• Some projects are run and cared for by commercial entities 
• Development and communications are done “in the open”
How to contribute
License and copyright 
•Each project is released under an Open 
Source License 
•Which? 
• Are you OK with that? 
• Can you use another? 
•All contributions are owned by a 
copyright owner 
• “hand it over” 
• license it 
• you own it
Communicate 
• Use English 
• Follow the mailing list / forum a while before you post 
• Don't be afraid of email, delete what you don't need to 
keep! 
• Absorb the tone and listen in on “how stuff works” 
• Think of the project as “we”, not “you” 
•When posting: be polite and stick to the subject 
• Before asking: try to figure out the answer yourself 
• But also: it is much better to ask before wasting a lot of 
time 
• Always discuss before posting changes/improvements 
• Respect that it may take time to get a reply
Communities 
• white, male, western, middle-class, christian 
• Everyone is not like you, others may think differently 
• Flame wars, trolls and spam will occur 
• People have invested time, sweat and tears 
• Participants are usually around by choice and interest
Work 
• There's usually a TODO somewhere 
• There's usually a bug tracker or list of known problems or bugs 
• Dig in and help out where you think you can, it is needed or where you 
think is most fun 
•More than code counts: 
• Repeat bugs 
• Test bug fixes 
• Answer questions 
• Translations 
• Art work / graphics 
• Documentation 
• Web site / admin
Send contributions 
•Adhere to license and copyright rules 
•Use the correct tools (version control, diff tools, editors, mail 
etc) 
•Base it on the right version, branch or source tree 
•Send contributions using the right format 
•Follow code standards 
•Assume reviews to point out (several) faults 
•Prepare to make several iterations before okayed 
• If no response, send reminder after a grace period 
•Argue for your way and for your changes.
Two projects in the real world
curl 
•Most copyrights belong to Daniel 
• One release every 8 weeks 
• < 100,000 lines of code 
• 100 commits per month 
• 40 authors per release 
• 5-7 core people, one maintainer 
• All volunteers 
•MIT licensed 
• 1400 bugs in the bug tracker 
• An IRC channel
Contributing to curl 
•Join the mailing list 
•Read the TODO / bug tracker 
•Ask around or grab something you 
feel like
Firefox 
• Driven by Mozilla 
• Hundreds of paid developers 
• Hundreds of daily commits 
• Hundreds of daily new bug reports 
• > 1,000,000 bug reports filed 
• Very distributed responsibilities 
• A hundred(?) mailing lists? 
• A hundred(?) IRC channels 
•Most committers are paid staff 
• > 12 million lines of code
Contributing to Firefox 
•http://whatcanidoformozilla.org/ 
•http://www.joshmatthews.net/bugsahoy/ 
•https://developer.mozilla.org/en-US/docs/Introduction 
•http://codefirefox.com/
Making your first contribution
What? 
Which project owns what you want to do? 
Join mailing list/forum 
Or start your own!
Source 
Where's the canonical source?
License 
Are we good?
Tests 
Are there tests we can run to verify our changes?
Change it! 
•Correct branch 
•Right tool 
•Use tool correctly 
•Change only what you need to 
•Add tests and documentation 
•Make a good commit message or description
Send it off 
•Send your contribution 
•Wait for review 
•Update your work 
•Send new version
Simple enough, huh? 
Now, let's try this for real!
Learn more!
Doing good is part of our code

More Related Content

Viewers also liked

Viewers also liked (6)

HTTP/2 - for TCP/IP Geeks Stockholm
HTTP/2 - for TCP/IP Geeks StockholmHTTP/2 - for TCP/IP Geeks Stockholm
HTTP/2 - for TCP/IP Geeks Stockholm
 
Http2 right now
Http2 right nowHttp2 right now
Http2 right now
 
Internet all the things - curl everywhere!
Internet all the things - curl everywhere!Internet all the things - curl everywhere!
Internet all the things - curl everywhere!
 
Everybody runs this code all the time
Everybody runs this code all the timeEverybody runs this code all the time
Everybody runs this code all the time
 
HTTP/2 Update - FOSDEM 2016
HTTP/2 Update - FOSDEM 2016HTTP/2 Update - FOSDEM 2016
HTTP/2 Update - FOSDEM 2016
 
Http2
Http2Http2
Http2
 

Similar to Contributing to Open Source

Moodle Help! How do I turn it off and on again?
Moodle Help! How do I turn it off and on again?Moodle Help! How do I turn it off and on again?
Moodle Help! How do I turn it off and on again?
Andrew Nicols
 
Introduction To Fedora
Introduction To FedoraIntroduction To Fedora
Introduction To Fedora
Arindam Ghosh
 

Similar to Contributing to Open Source (20)

What every successful open source project needs
What every successful open source project needsWhat every successful open source project needs
What every successful open source project needs
 
How to get started in Open Source!
How to get started in Open Source!How to get started in Open Source!
How to get started in Open Source!
 
Introduction to Open Source, Apache and Apache Way
Introduction to Open Source, Apache and Apache WayIntroduction to Open Source, Apache and Apache Way
Introduction to Open Source, Apache and Apache Way
 
But we're already open source! Why would I want to bring my code to Apache?
But we're already open source! Why would I want to bring my code to Apache?But we're already open source! Why would I want to bring my code to Apache?
But we're already open source! Why would I want to bring my code to Apache?
 
Apache: Code, Community and Open Source
Apache: Code, Community and Open SourceApache: Code, Community and Open Source
Apache: Code, Community and Open Source
 
Management de communaute
Management de communauteManagement de communaute
Management de communaute
 
Contributing to Open Source Software
Contributing to Open Source SoftwareContributing to Open Source Software
Contributing to Open Source Software
 
Créer une communauté open source: pourquoi ? comment ?
Créer une communauté open source: pourquoi ? comment ?Créer une communauté open source: pourquoi ? comment ?
Créer une communauté open source: pourquoi ? comment ?
 
The Apache Way
The Apache WayThe Apache Way
The Apache Way
 
Open Source: What is It?
Open Source: What is It?Open Source: What is It?
Open Source: What is It?
 
Moodle Help! How do I turn it off and on again?
Moodle Help! How do I turn it off and on again?Moodle Help! How do I turn it off and on again?
Moodle Help! How do I turn it off and on again?
 
Andrew Nicols - Help!! How do I turn it off and on again?
Andrew Nicols - Help!! How do I turn it off and on again?Andrew Nicols - Help!! How do I turn it off and on again?
Andrew Nicols - Help!! How do I turn it off and on again?
 
Write a better FM
Write a better FMWrite a better FM
Write a better FM
 
What is open source?
What is open source?What is open source?
What is open source?
 
Contributing to Open Source
Contributing to Open SourceContributing to Open Source
Contributing to Open Source
 
Guide to open source
Guide to open source Guide to open source
Guide to open source
 
Introduction To Fedora
Introduction To FedoraIntroduction To Fedora
Introduction To Fedora
 
Opening up Open Source
Opening up Open SourceOpening up Open Source
Opening up Open Source
 
LCA14: LCA14-110: FLOSS Training
LCA14: LCA14-110: FLOSS TrainingLCA14: LCA14-110: FLOSS Training
LCA14: LCA14-110: FLOSS Training
 
Community Marketing
Community MarketingCommunity Marketing
Community Marketing
 

More from Daniel Stenberg

More from Daniel Stenberg (20)

mastering libcurl part 2
mastering libcurl part 2mastering libcurl part 2
mastering libcurl part 2
 
mastering libcurl part 1
mastering libcurl part 1mastering libcurl part 1
mastering libcurl part 1
 
curl - openfourm europe.pdf
curl - openfourm europe.pdfcurl - openfourm europe.pdf
curl - openfourm europe.pdf
 
curl experiments - curl up 2022
curl experiments - curl up 2022curl experiments - curl up 2022
curl experiments - curl up 2022
 
curl security - curl up 2022
curl security - curl up 2022curl security - curl up 2022
curl security - curl up 2022
 
HTTP/3 in curl - curl up 2022
HTTP/3 in curl - curl up 2022HTTP/3 in curl - curl up 2022
HTTP/3 in curl - curl up 2022
 
The state of curl 2022
The state of curl 2022The state of curl 2022
The state of curl 2022
 
Let me tell you about curl
Let me tell you about curlLet me tell you about curl
Let me tell you about curl
 
Curl with rust
Curl with rustCurl with rust
Curl with rust
 
Getting started with libcurl
Getting started with libcurlGetting started with libcurl
Getting started with libcurl
 
HTTP/3 is next generation HTTP
HTTP/3 is next generation HTTPHTTP/3 is next generation HTTP
HTTP/3 is next generation HTTP
 
Landing code in curl
Landing code in curlLanding code in curl
Landing code in curl
 
Testing curl for security
Testing curl for securityTesting curl for security
Testing curl for security
 
common mistakes when using libcurl
common mistakes when using libcurlcommon mistakes when using libcurl
common mistakes when using libcurl
 
HTTP/3 in curl 2020
HTTP/3 in curl 2020HTTP/3 in curl 2020
HTTP/3 in curl 2020
 
The state of curl 2020
The state of curl 2020The state of curl 2020
The state of curl 2020
 
curl roadmap 2020
curl roadmap 2020curl roadmap 2020
curl roadmap 2020
 
curl better
curl bettercurl better
curl better
 
HTTP/3 for everyone
HTTP/3 for everyoneHTTP/3 for everyone
HTTP/3 for everyone
 
HTTP/3, QUIC and streaming
HTTP/3, QUIC and streamingHTTP/3, QUIC and streaming
HTTP/3, QUIC and streaming
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Contributing to Open Source

  • 1. Contributing to Open Source Daniel Stenberg, October 16th 2014
  • 2. Agenda About FOSS How FOSS works Two examples The first patch
  • 3. Please ask! Feel free to interrupt and ask at any time!
  • 4. Daniel Stenberg Email: daniel@haxx.se Twitter: @bagder Web: daniel.haxx.se Blog: daniel.haxx.se/blog
  • 5. FOSS history of Daniel • 1991 - Discovered Unix (AIX), working for IBM • Wow, there's a lot of source code given away free by cool people! • 1994 – an IRC bot called Dancer was my first “own” project • ... • 2014 – I'm employed to work entirely on open source software
  • 6. What is Open Source?
  • 7. I'll skip •history •how Open Source conquers the world •why people participate
  • 8. Definition Open source software is software that can be freely used, changed, and shared (in modified or unmodified form) by anyone. “Free software” means software that respects users' freedom and community. Roughly, it means that the users have the freedom to run, copy, distribute, study, change and improve the software.
  • 9. Not defined •Which license – 100s to pick from • Collaboration – if at all or how • How to get the code • How to figure out how things work • How to contribute changes • How to get binaries or packages built from the code • How to behave and accepted behavior •Which (human) language to use • ...
  • 10. Common practices • A “project” develops one or more “products” • Anyone can join an open source project • A limited set of core people can “accept” changes •Meritocracies – those who do and can things get more to do and say • A project usually has a web site explaining the project or the product(s) • Some projects work under “Umbrella organizations” •Most projects are small teams with volunteers • Some projects are run and cared for by commercial entities • Development and communications are done “in the open”
  • 12. License and copyright •Each project is released under an Open Source License •Which? • Are you OK with that? • Can you use another? •All contributions are owned by a copyright owner • “hand it over” • license it • you own it
  • 13. Communicate • Use English • Follow the mailing list / forum a while before you post • Don't be afraid of email, delete what you don't need to keep! • Absorb the tone and listen in on “how stuff works” • Think of the project as “we”, not “you” •When posting: be polite and stick to the subject • Before asking: try to figure out the answer yourself • But also: it is much better to ask before wasting a lot of time • Always discuss before posting changes/improvements • Respect that it may take time to get a reply
  • 14. Communities • white, male, western, middle-class, christian • Everyone is not like you, others may think differently • Flame wars, trolls and spam will occur • People have invested time, sweat and tears • Participants are usually around by choice and interest
  • 15. Work • There's usually a TODO somewhere • There's usually a bug tracker or list of known problems or bugs • Dig in and help out where you think you can, it is needed or where you think is most fun •More than code counts: • Repeat bugs • Test bug fixes • Answer questions • Translations • Art work / graphics • Documentation • Web site / admin
  • 16. Send contributions •Adhere to license and copyright rules •Use the correct tools (version control, diff tools, editors, mail etc) •Base it on the right version, branch or source tree •Send contributions using the right format •Follow code standards •Assume reviews to point out (several) faults •Prepare to make several iterations before okayed • If no response, send reminder after a grace period •Argue for your way and for your changes.
  • 17. Two projects in the real world
  • 18. curl •Most copyrights belong to Daniel • One release every 8 weeks • < 100,000 lines of code • 100 commits per month • 40 authors per release • 5-7 core people, one maintainer • All volunteers •MIT licensed • 1400 bugs in the bug tracker • An IRC channel
  • 19. Contributing to curl •Join the mailing list •Read the TODO / bug tracker •Ask around or grab something you feel like
  • 20. Firefox • Driven by Mozilla • Hundreds of paid developers • Hundreds of daily commits • Hundreds of daily new bug reports • > 1,000,000 bug reports filed • Very distributed responsibilities • A hundred(?) mailing lists? • A hundred(?) IRC channels •Most committers are paid staff • > 12 million lines of code
  • 21. Contributing to Firefox •http://whatcanidoformozilla.org/ •http://www.joshmatthews.net/bugsahoy/ •https://developer.mozilla.org/en-US/docs/Introduction •http://codefirefox.com/
  • 22. Making your first contribution
  • 23. What? Which project owns what you want to do? Join mailing list/forum Or start your own!
  • 24. Source Where's the canonical source?
  • 25. License Are we good?
  • 26. Tests Are there tests we can run to verify our changes?
  • 27. Change it! •Correct branch •Right tool •Use tool correctly •Change only what you need to •Add tests and documentation •Make a good commit message or description
  • 28. Send it off •Send your contribution •Wait for review •Update your work •Send new version
  • 29. Simple enough, huh? Now, let's try this for real!
  • 31. Doing good is part of our code