DEV Community

Discussion on: Building Native Desktop Apps with Electron.JS

Collapse
 
brett84c profile image
Brett Connolly • Edited

You're neglecting to take into account that a lot of smaller companies simply cannot afford to pay for native developers and separate teams. Javascript, HTML, and CSS are very popular skills sets that are much easier to hire for. You can hire 8 devs, half knowing Swift and the other half knowing C++, or you can hire 4 or less front-end devs to build for both iOS and Windows with Electron.

The memory consumption of Electron is a semi-fair complaint because most of the time, it seems to boil down to how efficient the devs are and how aware they are of memory usage in Javascript. VSCode is built with Electron and it's been a dream come true for web development. Hell, they even have it working directly in the browser on Github (press the period key while in one of your repos). VSCode has a reasonable footprint for being a full on IDE with an integrated terminal and the ability to load extensions, among a multitude of other features. I have never once had to worry about my memory usage while running VSCode and a handful of other Electron apps and a browser at the same time, and my laptop is like 5 years old. When the average user has a RAM memory pool of upwards of 50GBs, a single Electron app using 1GB isn't going to cause memory concerns for the average user, even if you had 8 of them open at the same time.

So healthy skepticism in all things. Electron does come with some extra overhead by nature of being a browser, but for people with limited capital, it's a solid option to get your MVP off the ground and considering doing native later on once the app has hit critical mass. For many small companies, it's really their only option. Don't neglect the business side of things. Lots of developers tend to do that and it's rather disingenuous, imo. Not all companies have bottomless pockets.

Collapse
 
jonrandy profile image
Jon Randy 🎖️

I often have fights at work about poor decisions being made due to 'business' considerations - $$$ decisions very often suck 🙂

Thread Thread
 
brett84c profile image
Brett Connolly • Edited

I mean, at the end of the day, these people are paying your salary and giving you a means of living to buy all of the nice things you own. A lot of devs seem to want to have their cake and eat it too when they should just be happy they have the cake to begin with. I personally am not a fan of the one-sided developer takes that seem to always default to "business bad". It shows a lack of understanding of the business side (which most devs have never been a part of or understand on more than a surface level) and comes off as economically naive.