The perils of shared code
-
Kent wrote
what's yours is mine
Are you sure you want my buggy code ?
-
While he makes some interesting points, they are a bit too abstract for me. I think, in summary, one could simply say "libraries should be created by people who know what they are doing." I was surprised he didn't mention the whole NPM (et al) dependency nightmare. Personally, I think he fumbled big right at the kickoff: >There are two main goals I have seen for sharing code via libraries: sharing domain logic and sharing abstractions in the infrastructure layer 1. Libraries should never be created for domain logic -- by definition, the domain logic is for solving the problem of a particular domain. 2. Sharing abstractions in the infrastructure layer sounds like its sharing the domain scaffolding. Again, a bad idea for reason #1. Marc
V.A.P.O.R.ware - Visual Assisted Programming / Organizational Representation Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
While he makes some interesting points, they are a bit too abstract for me. I think, in summary, one could simply say "libraries should be created by people who know what they are doing." I was surprised he didn't mention the whole NPM (et al) dependency nightmare. Personally, I think he fumbled big right at the kickoff: >There are two main goals I have seen for sharing code via libraries: sharing domain logic and sharing abstractions in the infrastructure layer 1. Libraries should never be created for domain logic -- by definition, the domain logic is for solving the problem of a particular domain. 2. Sharing abstractions in the infrastructure layer sounds like its sharing the domain scaffolding. Again, a bad idea for reason #1. Marc
V.A.P.O.R.ware - Visual Assisted Programming / Organizational Representation Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
I think (for infrastructure) he means tools rather than libraries - but even at that there is an argument for separating the [business] domains form the [technology] implementation such that libraries/tools are interchangeable. It is certainly what I have been aiming for, but it is very hard to do...