this post was submitted on 18 Jul 2023
0 points (NaN% liked)

Rust

5966 readers
5 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

Quoting the author

I’ve starting working on a lemmy front end called lemmy-ui-leptos using leptos, a Rust UI framework with isomorphic support, and tailwind + daisyUI for the component styling. This could eventually replace the frankenstein’s monster that lemmy-ui has become.

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 1 year ago* (last edited 1 year ago) (1 children)

Isomorphic rendering seems horribly inelegant.

My first instinct is to just use server-side rendering for this, although that may not be possible since posting a comment involves rendering part of the page on the client side.

In light of that, my second instinct is to render entirely on the client side, but then Lemmy won't work without JS, which may or may not be a problem. Mastodon seems to get away with it, but I dunno if Lemmy can. Also, client-side rendering makes it difficult to avoid breaking the back button, which the UI currently does.

Sheesh. Web development is such a mess.

[–] [email protected] 0 points 1 year ago

Why is it a problem to not work without js?

[–] [email protected] 0 points 1 year ago (1 children)
[–] [email protected] 0 points 1 year ago

It's not like they are programming communism into Lemmy.