Contributing to Open Source: Be a Mimic

Luke Downing made a contribution to Laravel. Before starting to write code, he took the time to look at how the repo was structured and how the code was written. By mimicking the ruling code style, his PR got accepted immediately:

When Dries [one of the maintainers] reviewed my PR, he understood the code immediately. In fact, I imagine it wasn’t far off what he would have decided to implement himself had he the time to do it.

Because of that decision, my PR was merged. There were no major changes requested. All went smoothly, and everybody was happy. If down the line Dries or Joe need to make changes to the code I contributed, they’ll feel right at home and will be able to do so quickly and efficiently.

Additionally: keep your PRs small, focussing on one thing.

Contributing to Open Source: Be a Mimic →

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.