Skip to content

Instantly share code, notes, and snippets.

@goatandsheep
Last active June 15, 2017 15:17
Show Gist options
  • Save goatandsheep/efdc70c760427e7cc493653537e5eb89 to your computer and use it in GitHub Desktop.
Save goatandsheep/efdc70c760427e7cc493653537e5eb89 to your computer and use it in GitHub Desktop.

Adding features to existing packages

  1. First think about how to clearly define the feature that you want and how it could be done in the language you need it in
  2. Should you split up?
  3. How eagerly do you want it?
  4. Maybe there's a reason why it hasn't been added.
  5. Post the feature as an issue in the package. Have a discussion with the author.
  6. If the author doesn't want the feature, then you can either fork the package or start from scratch.
  7. If you fork the package for separating or for future merging
  8. take some time to learn the existing style of the package: 1. How are functions setup? 2. What packages are used? Try to be minimal about how many additional packages you add. 3. Often times you can copy the skeleton of another function and fill it in.
  9. Is there a testing module? Copy the skeleton of another function and fill it in, too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment