TodoMVC in Rust with Sycamore

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 19

  • @CuriousSpy
    @CuriousSpy 2 ปีที่แล้ว +1

    started to use sycamore myself - amazing tool!

    • @CuriousSpy
      @CuriousSpy 2 ปีที่แล้ว

      i also setup tailwind/windicss so i dont have to write css myself

    • @chrisbiscardi
      @chrisbiscardi  2 ปีที่แล้ว +1

      Are you using just sycamore or something like Perseus with it?

    • @CuriousSpy
      @CuriousSpy 2 ปีที่แล้ว

      @@chrisbiscardi thank you for saying about Perseus - ill look into it! Looks promising. My setup is Tauri + Sycamore + WasmPack (for wasm build) + Vite (frontend build)
      Right now im experimenting with GUI for my "discord" app.

  • @raff7739
    @raff7739 2 ปีที่แล้ว +2

    can you make a video on Perseus, it's built on Sycamore but with many more features

  • @dfntlynotjorn
    @dfntlynotjorn 8 หลายเดือนก่อน

    Please do a video of sycamore with ssg without perseus.

  • @ChanceDinkins
    @ChanceDinkins 2 ปีที่แล้ว

    dioxus is probably worth looking into if it isn't on your list already.

    • @chrisbiscardi
      @chrisbiscardi  2 ปีที่แล้ว

      it is, and I've worked with it before so we'll likely talk about it at some point.

    • @ChanceDinkins
      @ChanceDinkins 2 ปีที่แล้ว

      ​@@chrisbiscardi Awesome! Also, great videos.
      One thing I don't get is why all of the rust front-end frameworks model themselves after react.
      Regardless, it's interesting to watch this space develop. I'm not sure its ready for prime-time yet but interesting none the less.

    • @chrisbiscardi
      @chrisbiscardi  2 ปีที่แล้ว

      @@ChanceDinkins it's a bit of a long story. tldr; is that React made some good choices years ago and rose in popularity sharply in the JS ecosystem. Being the leader in the space grants you some significant influence. Not every framework is a React-alike but most feel the need to compare themselves to React at least. Sycamore in particular models itself more after SolidJS than React.

    • @ChanceDinkins
      @ChanceDinkins 2 ปีที่แล้ว

      @@chrisbiscardi Yea, I did a good bit of UX/front-end dev, ending with AngularJS but backbone, jquery, and vanilla before I took a 5+ year hiatus from development & computers in general.
      On my way out, React was already picking up steam. Google had just shipped Angular (2?) and really upended a lot of effort the community had put in to build out an ecosystem. A ton of folks were soured over that and jumped ship so I guess it shouldn’t have come as too much of a surprise to me when I got back into the field.
      Still though, I’d really like to see perhaps a svelte-like (which may be a bit too magical, I don’t know) implementation or even something novel.

  • @llblumire
    @llblumire 2 ปีที่แล้ว +4

    Leptos next perhaps? If you're doing the rounds of frontend web stuff! :) it's a bit like sycamore but it has a more yew feeling jsx style template format. It also doesn't do `app_state.todos.get()` but instead `app_state.todos()` which feels a bit nicer to me

    • @chrisbiscardi
      @chrisbiscardi  2 ปีที่แล้ว +4

      yep, leptos is on the list. Tomorrow's video is on perseus (already uploaded/scheduled) and I'm probably going to end this week with some Rust releases/new features videos then pick back up with UI stuff after that.

    • @lukechu1
      @lukechu1 2 ปีที่แล้ว +1

      We could have this pretty easily in sycamore as well if we were to use nightly features. Leptos just uses nightly by default and stable is opt-in rather than opt-out.

  • @Luxalpa
    @Luxalpa 2 ปีที่แล้ว

    if you think the Keyed is weird, then you should take a look at Angular...

  • @thurston04
    @thurston04 ปีที่แล้ว

    But how and where does it get styled? How does it handle UI changes on DOM events?

    • @chrisbiscardi
      @chrisbiscardi  ปีที่แล้ว

      It's styled by CSS in the same way CSS normally works everywhere else (selectors, DOM, etc). In this example there's a link tag to a stylesheet all the todomvc projects use.
      UI changes on DOM events are supported by binding those events to functions or values to Signals that are then reacted to by your application. -- github.com/sycamore-rs/sycamore/blob/ce74cb52f2f46ef285c10101b85a49e6bfbaa3f5/examples/todomvc/src/main.rs#L200-L201

  • @rez188
    @rez188 ปีที่แล้ว

    Really don't like how cumbersome the iteration loops are in sycamore. Completely ruins the entire development experience. The way they're done in svelte is the gold standard in terms of syntax. The closer we can stick to that, the better. Seed has very nice syntax for this, so it's not like rust is incapable of being writable and readable. Clean syntax is actually one of the biggest selling points of rust and we shouldn't forget that