Hacker News new | ask | show | jobs
by mimixco 1784 days ago
It doesn't really matter if Electron has code you won't use. So does your TV, your car, and your fuzzy logic rice cooker.

The OP dismisses with prejudice the only reason Electron exists or is so popular: it saves dev time and lets people build desktop apps with skills they already have. The same app will work as a website or SaaS with no code changes.

Putting Flutter or XAML up against the advantage of your whole team already knowing the platform (HTML/TS/JS/CSS) makes those newcomers non starters.

1 comments

> It doesn't really matter if Electron has code you won't use.

It does matter very much when it negatively impacts your application's performance and user experience.

I definitely didn't dismiss the benefits Electron provides, in fact I completely acknowledge those benefits. The thing is, those benefits don't have to be exclusive to an unsuitable platform like Electron. What's stopping us from bringing that developer productivity to a desktop platform?

This post mostly focuses on app development for independent developers. However, these points are exaggerated even further for entire teams and companies where you actually have the time and resources to invest into the appropriate technologies instead of forcefully trying to reframe every development problem into a web problem (if all you have is a hammer...).

It couldn't be less of "everything is a hammer." We had native apps before Electron. It was developed and people choose it because it saves time and utilizes skills they already have. Like another poster, I smell management-style disdain for devs here.

The web won because worse is better. Is electron an "inappropriate tech" for Slack? Is (another web wrapper) wrong for Spotify? Those were conscious choices, made on purpose.