• @dan@upvote.au
    link
    fedilink
    9
    edit-2
    4 months ago

    programmers need a self inflicted rule of it being less than 500 lines of code means you need to write it instead of using a pre written package/library.

    That’s what I do, but then I end up with similar utils across multiple projects (eg some of these array, map, and set utils: https://github.com/Daniel15/dnstools/tree/master/src/DnsTools.Web/ClientApp/src/utils) and wonder if I should create a library.

    Then I end up doing that (https://github.com/Daniel15/jsframework is my most ‘recent’ one, now very outdated) but eventually the library gets outdated and you end up deleting most of it and starting again. (edit: practically this entire library is obsolete how)

    It’s the circle of life.

    • KillingTimeItself
      link
      fedilink
      English
      14 months ago

      i wonder if maybe we just need personal package repos for shit like this, stuff that probably shouldnt be out on the internet and accessible, but that’s also worth packaging for regular use. Like a sort of “code macro” which is something i see people doing a lot for certain boilerplate strings.

      • @felbane@lemmy.world
        cake
        link
        fedilink
        14 months ago

        You are describing a state of software development that has existed since the introduction of punch cards.

        Practically every business I’ve worked at has had some internal library or repository of commonly used behavior that can be included in day to day projects.

        • KillingTimeItself
          link
          fedilink
          English
          04 months ago

          obviously, i just mean more universally on an individual level today, maybe we just need package quality reviewers these days lol.

          You could pretty easily add this feature into whatever shit ass IDE you use that consumes 8GB of ram by just existing.