Oct-01-2019, 06:10 AM
(This post was last modified: Oct-01-2019, 06:13 AM by Gribouillis.)
Skaperen Wrote:can you point me to the concise document that lists the right way to do everything? it would need to be indexed by each thing to do in some order with the "answer" for each. "how to copy a file" would be one or more of these. there could be variations on copying files that might need a very different answer? and this document could be important in case there might be debates regarding the right way to do things in python.You know the fundamental theorem of software engineering
David Wheeler (presumably) Wrote:We can solve any problem by introducing an extra level of indirection.Add a level of indirection by interposing your own library of solutions
from my_solutions import copy_file ... copy_file(fn1, fn2, variant='cp')This would allow you to enrich gradually your collection of solutions without impacting the rest of your code.