3 ms·
I don't know your language's tooling, but I don't think that the decision of when to share code or not - (i.e. if it actually represents the same concept) is so
by SideburnsOfDoom 12y ago
I don't know your language's tooling, but I don't think that the decision of when to share code or not - (i.e. if it actually represents the same concept) is something that is solved by a specific tool, or is limited to a specific language.
- lmm 12y agoI've never seen a problem that comes from code being shared, and I think that comes from maven getting the rules right: * Releases are immutable * Releases can only depend on releases * Releases can only be made when all tests pass. Twice. * The transitive dependency graph is a deterministic function of the config file; upstream changes cannot affect it * Dependency versions are only updated by an explicit manual step You never worry about "synchronizing" changes because other components can perfectly well depend on an old version of the library. You never accidentally break a downstream project, because everything's explicit. I have genuinely never seen the problems described in your link.
- SideburnsOfDoom 12y agoYou are talking about binary compatibility and immutable dependencies. That's nice, but it's a different topic to the conversation that jerf and I are having about the semantics of shared code. I'm sure maven is good at what it does, but it's not completely relevant.
- lmm 12y agoFine, then let me put it this way: your initial claim in no way matches my experience. "Beware the Share" is bad advice; that wiki page is simply wrong. Factoring out common code is a good thing and will not bite you.
- SideburnsOfDoom 12y agoIt's a wiki page, but it's also a book [1]. I have an actual paper copy, and I would highly recommend it. I've seen several of the authors give talks, most were good. Kevlin Henney (the Editor) was particularly so. However I shall also treat the data from your deep experience with all due reverence. 1] http://www.amazon.com/Things-Every-Programmer-Should-Know/dp/0596809484/ref=sr_1_1?ie=UTF8&qid=1424027969&sr=8-1&keywords=97+things+every+programmer+should+know http://www.amazon.com/Things-Every-Programmer-Should-Know/dp...