Here’s a tutorial I wrote on using components to help keep your code organized.

  • @TheLongPrice@lemmy.oneOP
    link
    fedilink
    16 months ago

    That would definitely be an improvement, using classes is probably more robust. In my case, the project wasn’t too huge and it was solo, so I never hit issues with string references.