• 23 Posts
  • 272 Comments
Joined 2 years ago
cake
Cake day: September 23rd, 2023

help-circle











  • Matty_rOPtoRustStack advice
    link
    fedilink
    arrow-up
    2
    ·
    9 days ago

    The end goal is to try and have a web app that is usable on both desktop and mobile, I would use what I learn from this simple app to hopefully get something bigger going.

    I have nothing specifically against JS I just was (somewhat ignorantly) hoping I could avoid it altogether. I also don’t like having to double up on defining classes, one for backend and one for frontend. I tried React and it really felt like I was wasting my time redefining stuff that I had already defined in my backend.

    In my previous attempt, I basically had 3 definitions. The database definition, the Rust definition, then the frontend (JS).





  • Matty_rOPtoRustStack advice
    link
    fedilink
    arrow-up
    2
    ·
    9 days ago

    OK, that’s fine. Just means I’d need to think more about how stuff is implemented. I’m thinking like input fields for date and time selection etc. Could be an interesting challenge for sure.

    Surely its all been done before ha ha


  • Matty_rOPtoRustStack advice
    link
    fedilink
    arrow-up
    3
    ·
    9 days ago

    I think I’m going to go this route - Leptos + HTMX. I’ll see how far this gets me without any JS. What type of interactivity do you think might require JS? I assume I should be able to do form validation etc without it?