News for hackers. Stuff that matters.
Re:Building a Slack alternative with Rust/Tauri by nine_k on Tuesday June 20, 2023 @11:31PM (#36414058)
The truth us that once you have shipped Electron, there's no way back, the cost of switching is too high.

This is not specific to Electron, it's a similar effect with every core technology, all the way to COBOL.

Re:Building a Slack alternative with Rust/Tauri by dathinab on Wednesday June 21, 2023 @04:51AM (#36416064)
Most electron apps are (mostly but not solely) a bundling of the web-app.

So the cost is less the cost of "switching" and more the cost of initially writing a native app.

In turn the actual question is how to reuse as much code as possible between the web-app and native apps without it introducing a lot of friction.

And one of the few reliable, nicely (developer) usable answers for this is currently electron.

For "business logic" there somewhat are already other answers, some languages run on most targets reliable and there is also wasm which often still needs a bit more tooling but has a lot of potential for such use cases (e.g. see Disney which AFIK does have their core business logic compiled to a wasm blob and then "only" provide UI/system glue to bundle it in on all platforms their streaming app runs on).

The problem is UI, you really don't want to reimplement UI and the mapping of non HTML/CSS producing UI to a mix of HTML/CSS on some platforms and native components on other often doesn't work grate so it's not surprising people decided to "just go with HTML/CSS everywhere". And if you are already there going with electron isn't "that" much more overhead.

Re:Building a Slack alternative with Rust/Tauri by theappsecguy on Wednesday June 21, 2023 @09:02AM (#36417922)
This right here. Something monumental would have to happen for senior leadership to green light a rewrite, because that’s a massive project that will bring in no additional revenue.
Re:Building a Slack alternative with Rust/Tauri by remram on Wednesday June 21, 2023 @05:59PM (#36425254)
That they are content with mediocrity, I have observed, but they deserve to be called mediocre. "It's Electron" is not an excuse.