News for hackers. Stuff that matters.
Re:Ask HN: Develop productivity app first for Mac or Windows... by bronak1 on Tuesday March 19, 2019 @10:21AM (#19431030)
you can do both with https://electronjs.org/
Re:Ask HN: Develop productivity app first for Mac or Windows... by johnmax on Tuesday March 19, 2019 @10:59AM (#19431392)
Will definitely need to check this out.

I come from the mobile world, and my experience is, from myself and others, that cross-platform solutions always brought more pain than joy.

The latter solutions were great in theory, but created huge problems, when a little bit of a custom behaviour had to be implemented, maybe dependent on the target platform.

Also, when developing natively, there seems to be much more usable open-source code.

Re:Ask HN: Develop productivity app first for Mac or Windows... by a_wild_dandan on Tuesday March 19, 2019 @10:32AM (#19431133)
Yup, target Windows, macOS, and Linux all with one codebase (and be within epsilon of targeting mobile with Cordova). All with JS. Or preferably TypeScript.
Re:Ask HN: Develop productivity app first for Mac or Windows... by deca6cda37d0 on Tuesday March 19, 2019 @10:22AM (#19431044)
and here comes the discussion about why electron is bad :P
Re:Ask HN: Develop productivity app first for Mac or Windows... by neospice on Tuesday March 19, 2019 @10:32AM (#19431139)
In a world where VSCode runs on electron is there even room for this discussion anymore?
Re:Ask HN: Develop productivity app first for Mac or Windows... by nickjj on Tuesday March 19, 2019 @10:42AM (#19431207)
> In a world where VSCode runs on electron is there even room for this discussion anymore?

Opening a 1.5mb markdown file with VSCode idles an i5 3.2ghz quad core at 50%+ CPU and uses 800mb of RAM with only a few extensions loaded.

Also the input latency while typing in an empty file with no extensions is substantially higher than apps using other UI frameworks.

I think there's plenty of room for discussion, especially considering that VSCode is over the top optimized compared to most other Electron apps (which are WAY WAY worse than VSCode).

Re:Ask HN: Develop productivity app first for Mac or Windows... by sirjaz on Tuesday March 19, 2019 @10:35AM (#19431149)
VSCode is highly optimized and has tons of engineers behind it. If it were me I would do .Net Core and Avalon UI: http://avaloniaui.net/
Re:Ask HN: Develop productivity app first for Mac or Windows... by rygxqpbsngav on Tuesday March 19, 2019 @10:41AM (#19431193)
Looks like Avalon is in beta. Are there any stable alternatives that are production ready?
Re:Ask HN: Develop productivity app first for Mac or Windows... by scarface74 on Tuesday March 19, 2019 @10:26AM (#19431093)
And you could also gouge your eyes out. But neither would be pleasurable.