back

by dafelst·5y ago·view on hn ↗
But then with native you have to pay the cross platform price. Which is higher do you think?

With Electron you get cross platform more or less for free and ostensibly you can make it faster later.

Don't get me wrong, I love doing native work, but as someone who has to deal with cross-platform issues in native applications (well games) on the daily, I can tell you that even with massive code reuse and good interfaces, that cost is incredibly high.

4 comments
> But then with native you have to pay the cross platform price. Which is higher do you think?

You could for example use Qt. It is cross-platform and if you write your application well, the amount of platform-specific code will be quite small.

>With Electron you get cross platform more or less for free and ostensibly you can make it faster later.

It's not for-free. The effort/work for the developer is reduced, while the amount of work for the users' PC is increased. Sure, a lot will think, that this is a great deal, but at in my opinion, you should do it the other way round.

How often have you seen electron apps going faster? I never did. With a native toolkit, you have performance from the beginning for the same quality.

I mean, you are talking about making a goddamn text editor faster — it’s just ridiculous. There should be no lag whatsoever when it comes to UIs in 2021.
Building a text editor across platform with exact the same behavior is somewhat a thing that you almost always to redo "everything" in different platforms.

It isn't very unseasonable to just relies on something that already do most hard works for you.

If you must use some "native" alternative. It is probably something like GTK/QT. But I doubt do they actually have the ability to do such complex edit behavior and layouts.

> It is probably something like GTK/QT. But I doubt do they actually have the ability to do such complex edit behavior and layouts.

They actually can - QtCreator for example. Also, I really don't think that the web would be the panacea of UIs, on the contrary.

But I otherwise agree with you - text editors are surprisingly hard. But I still don't really get the why for teams. It could even just add a webview for the actual meeting part, but let the rest be something actually workable.

> "But then with native you have to pay the cross platform price. Which is higher do you think? With Electron you get cross platform more or less for free"

Don't pay the cross platform price. Stop developing inferior software for your core users so that other people on other platforms can also have inferior software. It's not a good tradeoff, it's a bean-counter's tradeoff.

It's like going to a steak restaurant and finding they only sell lettuce so vegans can eat there, or going to a bar and finding they no longer sell alcohol because they're trying to appeal to tetotallers who don't like bars. It's like Ferrari putting a Honda Civic engine in to try and appeal to both sets of customers and the Honda customers don't want the six figure price tag and the Ferrari customers don't want a low power reliable 4-cylinder engine. It's the "one size fits nobody very well" of software, it's the abandonment of your core competency to appeal to people who hate you.

A handful of people make Sublime Text, which is as good if not better than VS Code. It can be done.