• BeigeAgenda@lemmy.ca
    link
    fedilink
    arrow-up
    18
    ·
    edit-2
    1 year ago

    When I get helper functions from stack overflow or similar, I normally add a comment with a link to the article, mostly for my own sake so if there’s any problems later I can re-read the article to get more info, or use it to try and find other solutions.

    • rambaroo@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      For JS shit I usually have to rewrite them because they aren’t production quality in terms of readability. Still really useful for getting answers on obscure stuff

      • BeigeAgenda@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        The quality is definitely varying, the hardest part is to find a example that fits what you expect, or looks like it can be refactored into what you need.