Take some time to think about that one for a while and ask yourself if you really want to open up that door.ĭo you really want this thing out in the open? Or could it live quite happily as a project-scoped library module, ugly in form and absent in test coverage, but works fine on your machine so who cares? 3.
BEARDEDSPICE CHROME 68 CODE
Congratulations! Your repo will be acquired by Google in no time, and your future Silicon Valley career path is a sure thing! Think of all of the people looking at and scrutinising your code in great detail, and adding that unique flavour of warm, supportive and constructive feedback that the internet is known for. Let’s assume that your library will be a great success, and used by thousands in the first few months. Have you been using the techniques that are in heavy rotation in this library for more than a couple of weeks?
![beardedspice chrome 68 beardedspice chrome 68](https://i.ebayimg.com/images/g/D9IAAOSwLNtiy4ft/s-l500.jpg)
Just search the sea of single-commit library repos on GitHub that are tagged “ android-library“ to see what I mean. In addition, if nobody uses it (not even you), nobody finds the bugs, and the dependency remains rubbish and unusable. YAGNI alert! At very least you should need this library that you are creating right now, because the only way that you “shake down” a dependency is when it’s used. Are you writing this library because you actually need it? Or because you think that you or someone else might need it at some point, maybe? First in order to decide whether or not we should even be making such a library, we must do a little exercise I like to call, the Super Fun Dunning Kruger Stage Self-Assessment Quiz Fun Quiz! So you might be wondering at this point when I’ll just get to the code dump that you can copy-paste somewhere, and rename awesome-omni-util-lib, so that you can become the next Jake Wharton, well hold your horses there young buck.
![beardedspice chrome 68 beardedspice chrome 68](http://my-time-machines.net/Beard_Type_1-05.jpg)
I’m joking, but I’m only half joking, because that is a pretty good metaphor for some OS-libs I’ve seen, and I still have more software-development-flavoured snark to deliver before my desire to write wanes and I go back to swearing at the habitual, almost wilful, illogic of Facebook SDK developers, under my breath of course – as they still kinda pay the bills for me these days. What have you got yourself into now, and what’s that header image got to do with anything? Well that lovely header picture up top is a photo I took from my desk of a seagull caring for its young it has just vomited up some slugs that it collected earlier, and the fledgling gulls are hoovering it all up as if it’s… not a disgusting pile of slugs because they don’t know more delicious things exist in the world, because they’re still too young to even fly off and find food for themselves.Īnd that, in a metaphor, is a third-party open-source library. So you decided to write an open-source library, and here you are.