• villainy@lemmy.world
    link
    fedilink
    arrow-up
    117
    arrow-down
    2
    ·
    4 days ago

    Where’s

    Using Solutions that Already Exist

    No, seriously, you don’t have to build everything from scratch by yourself. Other people write code too.

    • squaresinger@lemmy.world
      link
      fedilink
      arrow-up
      18
      ·
      3 days ago

      It’s a double-edged sword and understanding when to re-use and when to re-implement is an art that goes wrong more often than right.

      • hornywarthogfart@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        13 hours ago

        We desperately need to teach people when a 3rd party dependency is necessary and not just optional to save writing a single function (cough left pad cough).

        Also when the dependency is really good but other considerations override it being a viable option like security or code ownership.

        How we all didn’t collectively learn our lesson from left pad baffles me.

    • the16bitgamer@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      Got caught in that trap at my first coding job. Made a sort formula and a sr dev asked my I didn’t just use the array.sort.

      My answer: I didn’t know it was there.

    • PolarKraken@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 days ago

      Ah, the ever-elusive, mysterious stage in my process - the one I can’t ever seem to move much before the “planning” and at least “beginning to implement” stages, and sometimes stubbornly comes even later than that.