Did #Barbenheimer today, about to go to sleep with plans to dig into #Axum and #leptos in #rustlang tomorrow. Pretty good weekend.
#barbenheimer #Axum #Leptos #rustlang
I love the documentation of #Leptos
Not only does it cover the entire scope, it does its best to cover basics too.
Like:
> In general, the less of your logic is wrapped into your components themselves, the more idiomatic your code will feel and the easier it will be to test.
Rather than introducing yet another weird e2e testing-framework, it explains why and how you should use leptos so that you *don't* need that testing-framework.
This, and many more basics and antipatterns are covered.
@Jdreben @guardiarris@emacs.ch @maegul Yes, at least #Leptos takes the #SolidJS approach of using signals to update only the minimal amount of DOM that actually changes.
Regarding JS: you don't need to touch it explicitly in those frameworks, BUT: it is still used to manipulate the #DOM.
For this to work, a lib called wasm-bindgen is used (awesome piece of technology!), which basically bridges #Rust <-> #JS:
https://rustwasm.github.io/docs/wasm-bindgen/
leptos_dom depends on it:
https://github.com/leptos-rs/leptos/blob/4ade062cd8cdbe9128aa7a2c8169c17c9d3e874c/leptos_dom/Cargo.toml#L28
#Leptos #solidjs #dom #Rust #js #rustlang #WASM
I've been avoiding #Rust for web front end as it's all so new/churny, and js/ts is mature & easily SO/google/OpenAI-able even for a front-end naïf like myself.
But now I'm not so sure. I admire the Deno folks' attempts to simplify/unify the whole ecosystem. Seeing how the attempt to do this just for dependencies itself gets increasingly complex (https://deno.com/blog/package-json-support) makes me think just ditching the whole farrago could be worthwhile for those who can.
#Leptos and #Dioxus look tempting.
Very interested in @system76 usage of #rust iced for desktop GUI, but I'm mulling an application which will have a web interface (even if it isn't the primary interface), which means #leptos with a #tauri front end for desktop is a better fit.
I do have a different idea for which iced would be a better fit. Or rather it would, but iced has no software renderer. It runs on any type of graphics acceleration, but acceleration is currently mandatory.
I need to try #rust #leptos, it looks like everything I crave in a modern web framework:
• Fine grained reactivity like solidjs. Not a VDOM like Yew, Vue or React.
• Isomorphic. The frontend and the backend are essentially one.
• Hydration. Server renders initial view then client can keep it updated.
• Not exclusively web. There is a #GTK example. (Though I would rather just use #Tauri)
It's still very new though so I'm sure there's sharp corners. ⚠️
https://github.com/leptos-rs/leptos
So #primeagen just made a new video about #leptos a new #rust web framework.
He completely trashes #react based on response time.
Funny & interesting video.
#primeagen #Leptos #rust #react
Todavia en proceso de documentación el desarrollo de la estación de monitorización de la calidad del aire #Leptos