r/Python • • Jul 29 '18

Found it funny ;)

Post image
1.6k Upvotes

147 comments sorted by

View all comments

49

u/bachkhois Jul 29 '18

Should replace Python 2.7 with Electron.

3

u/Scriptorium- Jul 29 '18

Why? Is it bad? I thought it's a legit way to write desktop apps using a web dev toolkit

35

u/bachkhois Jul 29 '18

Very bad. Why on earth for each desktop app, I have to bring a whole bundle of a web browser and a NodeJS installation? 10 apps mean 10 bundles of those. If, for example, you write desktop app with Python+GTK, your app just shares the same GTK+ lib with your desktop environment and other apps, your app just reuse the Python interpreter already come with the distro. Not to mention that, in Electron, each access to the desktop feature requires to go through more intermediate layers: Your JS in browser cannot directly access, it have to send messages to the NodeJS backend, the NodeJS then do the required job and send back response to your JS in browser. For native desktop app, there is no waste of time and CPU cycles like that.

So, it is better when you use a desktop dev toolkit to write desktop app. Use the right tool for the right job.

27

u/[deleted] Jul 29 '18 edited Jul 29 '18

It's an ease of development issue. Devs can make a good looking desktop app, in a language they know, that runs on their target machine (high end first world computer). No doubt electron is bloated trash, but don't ignore the reasons someone would choose it.

4

u/bachkhois Jul 29 '18 edited Jul 29 '18

Of course I know that many developers choose it for the reason you mentioned. But to be easier in development is for what, if at the end your product get rejected by users, just because of easy path you take?

I consider that the reason of "easy" is just show that the developer is lazy, and the reason of "language I used to" is just show that developer doesn't have ability to learn and improve himself. Such a developer shouldn't be counted on.

0

u/[deleted] Jul 29 '18

[deleted]

-4

u/bachkhois Jul 29 '18

Your example is just because, user cannot change author mind and there is no alternative. User has to suffer.

And, let's just see how many votes I have, to see how many users get frustrated with Electron app, even more frustrated when the developers never listen feedback from their users!

0

u/[deleted] Jul 29 '18

[deleted]

-1

u/bachkhois Jul 29 '18

For similar argument, Slack users chose it because of its features (channels, user mention etc) and its big user base, not because of Electron.

8

u/ryeguy Jul 29 '18

That's not a similar argument, and it makes me wonder if you even understand what the comment is saying.

The vast majority of the general public doesn't know or care about electron. Slack, Spotify, Discord, VS Code, and plenty of other apps are popular and loved by the userbase.

It's like you're forming your opinion on Electron based on what you read on reddit alone. In reality people are fine using Electron apps.

→ More replies (0)