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

  • TheLongPrice@lemmy.oneOP
    link
    fedilink
    arrow-up
    0
    ·
    13 days 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.