I thought a lot about this problem in an HCI (Human-Computer Interaction) project in my graduate studies. Most professional developers end up learning languages at work. Unfortunately, not everyone has a team of developers to lean on and code bases to develop and learn a new language in. The approach you exactly described stood out as one of the best options that exists today to emulate that approach. I'd recommend this to anyone looking to build their skills in a new language. It also doesn't hurt that contributing to open-source will be something you can later show off if needed!
Someone really should build a site that can help people find a good open source library to contribute to.
They exist :)
YES! I find that I learn a language fastest and best when I'm reading through code written in that language...assuming it is halfway decently intent-commented and/or documented so you know what it was supposed to do. :3
That said, I also watched one of my teams learn a LOT about C++ by reading through some very poorly documented spaghetti code and working out what it was doing, and why. (Their efforts later led to the open source project being able to refactor a performance-critical part of the code.)
Really great article, surprised many others (including myself!) hadn't thought of this before. I've been programming for a while and still haven't really contributed to open source - but I suppose you're right, you don't need to be an expert, you can just start on simple pull requests.
Thanks for writing - this was really interesting.
In fact, I'm going to contribute to something tonight!
The difficulty is in finding a good quality project. I nearly learned Python just to contribute to a project I liked using and believed in - then I found a whole bunch of discussion on Reddit about how the maintainer didn't know what they were doing, refused to update dependencies, esoteric coding style, wasn't open to debate, etc etc.
So I never learned, and never made the pull request :(
That is the best idea, learn by studying other people code.
When I started to work, they had a really big ERP system and I started by following their patterns and methods. Was hard because there wasn't documentation and every one was so occupied and no one could explain anything to me. Reading the code I realised that I don't needed the documentation because methods/functions are really simple and self explanatory. I followed the pattern blinded till I realised why they need it.
All pieces fit and now I do the same study everytime and any project.
"I have never received even a single comment which was insulting or demotivating. Everyone is super encouraging and helpful." --This is the only reason I love open source community and I want to be part of it.
I don't do it on open source projects, but I have always found the best way to learn a new language is to find a project and add to it. It also makes you an awesome employee because you are happy and able to learn on the job
The only thing time I would say it is different is if the inheritance pattern or some other major feature is very different from what you know OR it is your first programming language. Then it's best to do some research on differences or learn the basics before you dive in! I have learned multiple languages this way.
I think I am going to start with open source next time I want a new language though, it sounds fun!
Very good article. I used to always wonder how to find those open source projects to get started. Is there any way to find the suitable open source projects to contribute ?
I once came across this twitter account which showed github projects and their beginner issues for your first PR:
Maybe it's worth a look.
Here are other sources for the first PR:
found in this german blog post:
Thanks for the links, Willi! I always had hard time finding entry-level issues to work on when learning new tech.
Anyone here who learned haskell or scala or rust and contributed to a project after 2 days? :)
Very good article. I used to always wonder how to find those open source projects to get started. Is there any
Awesome article! I've just started learning Ruby for work, going to try this out.
Sounds like a really good idea - I must get started this summer.
What a great article
This just came in at the right time thank you, I am actually learning Go and I have been battling with adopting and understanding, I am sure this will work.
Some thing really worth trying. Great article
Great article. And I agree. Great way to learn. And to learn how to work with others!
Nice article! I'm going to give it a try!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.