Programming HTML in Rust may have annoyed some gods.

56 points · 10 comments · view on lemmy.world

10 Comments

Hexarei@programming.dev · 29 pts · 3y (2 replies)

Web development is, and will always be, just a game of finding increasingly cursed unique ways to concatenate HTML strings

cadekat@pawb.social · 5 pts · 3y

One day I'll find a reason to use html!. One day.

o11c@programming.dev · 3 pts · 3y

The problem is that what everybody really wants is parameterization, not concatenation. But most solutions therefor are flaky even if they exist.

ILikeBoobies@lemmy.ca · 13 pts · 3y

All programming was intended to take place within Rust

Zeth0s@lemmy.world · 9 pts · 3y (1 reply)

I have seen frontends written in c#. Nothing surprises me anymore

etler@programming.dev · 3 pts · 3y

After experiencing struts everything else looks great in comparison

Ferris@discuss.online · 2 pts · 3y

Wow. Looks like my browser renders imgur nonfunctional at this point. Weird.

hairyballs@programming.dev · 2 pts · 3y

Genuine question: what's wrong with templating engines?

Macil@programming.dev · 2 pts · 3y (1 reply)

This looks like how React components are written if you make the weird choice of not using the JSX syntax extension for React elements. I wonder if you could make a JSX-like DSL with Rust macros. JSX really helps for making this kind of stuff bearable.

autokludge@programming.dev · 2 pts · 3y

after a quick search ... https://github.com/bodil/typed-html also leptos uses something similar