On Tue, Apr 2, 2019 at 11:16 AM DL Neil <pythonl...@danceswithmice.info> wrote: > One of the points which intrigue me is that my colleagues don't keep > snippets/a library, preferring to remember (hah!) when/where they used > particular techniques in the past, and copying/duplicating, to fit the > new system's requirements. Am wondering if this is true beyond our > little band? >
Until I've done something the same way two or three times, I just recollect and steal. There are a few things that are in the back of my mind to refactor out and make into libraries, but it's hard when they aren't actually identical. Otherwise, it waits till there are a few replicas, and then might get put into a central location somewhere. Sometimes, I recollect and reference, which creates some very weird interdependencies until I get around to refactoring... https://github.com/Rosuav/MegaClip/blob/master/deviquotes.py imports https://github.com/Rosuav/shed/blob/master/emotify.py which gets an API key from the non-sample version of https://github.com/Rosuav/MustardMine/blob/master/config_sample.py and the end result of deviquotes is to rebuild this https://github.com/DeviCatOutlet/devicatoutlet.github.io/blob/master/quotes.md So running that one script can potentially involve four different repositories, because I haven't yet made any of the pieces into proper libraries... ChrisA -- https://mail.python.org/mailman/listinfo/python-list