Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. The perils of shared code

The perils of shared code

Scheduled Pinned Locked Moved The Insider News
htmlcom
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    Jaxenter[^]:

    In this article, Daniel Westheide explains why some people share code via libraries, why it can be problematic, and how you can mitigate those problems.

    "What's mine is mine, and what's yours is mine too."

    V M 2 Replies Last reply
    0
    • K Kent Sharkey

      Jaxenter[^]:

      In this article, Daniel Westheide explains why some people share code via libraries, why it can be problematic, and how you can mitigate those problems.

      "What's mine is mine, and what's yours is mine too."

      V Offline
      V Offline
      Vander Wunderbar
      wrote on last edited by
      #2

      Kent wrote

      what's yours is mine

      Are you sure you want my buggy code ?

      1 Reply Last reply
      0
      • K Kent Sharkey

        Jaxenter[^]:

        In this article, Daniel Westheide explains why some people share code via libraries, why it can be problematic, and how you can mitigate those problems.

        "What's mine is mine, and what's yours is mine too."

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #3

        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

        D 1 Reply Last reply
        0
        • M Marc Clifton

          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

          D Offline
          D Offline
          Duncan Edwards Jones
          wrote on last edited by
          #4

          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...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups