😱

Do web devs who move to desktop feel as lost as I do moving to web?!

This does not fit in my MVC mind.

Reply to this note

Please Login to reply.

Discussion

makes desktop apps a lot easier if you do section them up as MVC tho

if you know of the app keybase, it has a go-based data/network backend that plugs into an app framework middleware with a presentation engine on top

yeah, maybe the part that is unfamiliar is the front end is maybe a bit different and easier to muddle with the other parts

What framework are you using?

NextJS. I’m tripping out on things like state, render loop stuff, hooks, etc….

Yeah...an oft-repeated phrase at my day job is "must be a lifecycle issue." Lifecycle hooks can be a pain.

I'll let you know in a bit. Going to spin up a rust-based nostr client for windows real quick.

(Actually...I really do want to do that.)

The fact that the rendering is handled completely, and all I have to do is structure it and then describe it in CSS is amazing. If I had to include the code for the renderer for every project... 🤷‍♂️ time saving is just the half of it.

I certainly don’t have any experience doing UI in Rust. Which kit will you use? I believe the clients I’ve seen in rust are using imgui which is immediate mode?

That’s also a newish paradigm for me (personally). I came up on WPF and Qt. I’ll be following your progress if you keep us up to date on how it’s going.

I'm still green enough that I am just getting to know the landscape, let alone actually choosing a UI kit. Got suggestions?

I don’t in Rustland. Both nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s and nostr:npub1acg6thl5psv62405rljzkj8spesceyfz2c32udakc2ak0dmvfeyse9p35c would be opinions I would trust and endorse sight unseen on it though, and they’re both working on guis in rust right now, so both current and actually have PoW.

Imgui is the only one I’ve heard people I actually knew using. I’ve also checked out AreWeGuiYet? ( https://areweguiyet.com/ ) to see if Rust was viable for my job, and if you haven’t already, it might be a good resource.

In C++, the choice is Qt if your project is of any size and cross platform. There is no other choice that comes close. That being said, I hate it with a passion as powerful as 10,000 suns. And I still use it.

😂 So what's the trouble with qt?

I'll have to see if either of them have suggestions.

Gentlemen, what's your favorite Rusty GUI?

I just realized that Gossip is written entirely in Rust! It's the only real client on Windows (never got nostrmo to work).

I might have to dabble and contribute!

Yes, come on over and work on gossip. We are going to be needing another developer soon.

We use an immediate gui called 'egui' which means it just re-runs our code every frame to again figure out what to draw that frame, which is straightforward but also we have to make sure not to run any time-consuming code on the UI thread.

If you start another project, don't use egui. Not that it is bad, but we have two egui projects already (gossip and notedeck) and zero projects in "normal" guis. egui has some problems being that it draws at such a low-level, like no font hinting or subpixel antialiasing, no color emojis, and plagued with text layout problems, so you can't make a truly "beautiful" client in egui IMHO.

Gotcha. A step above needing to code your own font engine. That's pretty low level. It's probably great for data visualization or building a game engine, or at least something that changes frequently.