this post was submitted on 11 Jun 2023
30 points (100.0% liked)
Programming
13389 readers
41 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What's rust like for web interface? I assume it's still HTML based? No oop? Also, how do you feel about typescript?
It takes some getting used to, but for me it's much better than JavaScript and even TypeScript. TypeScript is a little better than using JavaScript, but not by much. I still find it very frustrating to use. The ecosystem is a mess, IMO.
In Rust when doing web work, at least when using the Yew framework, you return an
Html
type from functions. Kinda like this:It's very similar to using React, with various state / hook things that have been developed pretty directly with reference to how React does things.