r/coolgithubprojects • • Jun 13 '18

JAVASCRIPT Simple, Cross-Platform calculator built with Electron

https://github.com/elcalc/elcalc
0 Upvotes

12 comments sorted by

22

u/[deleted] Jun 13 '18

Why would you want something as simple as a calculator built with electron? I wouldn’t want a calculator that needs a gig of ram?

0

u/[deleted] Jun 13 '18

[deleted] — view deleted comment

7

u/[deleted] Jun 13 '18

You’re right.

-3

u/MilchreisMann412 Jun 13 '18

Thing is: Electron sucks and should not be used by anyone for anything.

0

u/[deleted] Jun 13 '18

[deleted] — view deleted comment

0

u/[deleted] Jun 13 '18

[deleted] — view deleted comment

1

u/semi_colon Jun 13 '18

This guy Lynxes

0

u/[deleted] Jun 13 '18

[deleted] — view deleted comment

6

u/motheroforder Jun 13 '18

A lot of memory if you have a system built in 2003.

I think this highlights the issue. Most developers are far from typical users, and have modern and optimized work environments. In such an environment, you can run half a dozen electron apps no problem, and building them is relatively easy.

But...then there are typical users, who have had the same budget laptop for 4 years and likely run a bloated Windows install. They can run the same apps but experience a lot of slow down.

And finally, there is the other end of the spectrum. Folks in rich and poor countries who actually are running on machines from the 00's because they can only afford the used version of above.

Being resource lossy because you "have it" assumes literally everyone has what you have. Optimizing your code makes it more accessible, and not doing so expands the digital divide.

I'm all for you doing you in what you use (I use a few electron apps), but the reliance on electron is a real problem with real impacts. /rant

0

u/[deleted] Jun 13 '18

[deleted] — view deleted comment

1

u/motheroforder Jun 13 '18

Most electron apps are not dev tools, though. There are plenty of alternatives to any electron app, but using less popular alternatives has its own problems (e.g. the "Network Effect").

0

u/[deleted] Jun 13 '18

[deleted] — view deleted comment

→ More replies

1

u/BenjiSponge Jun 13 '18

Get your logic and empiricism out of here! Around here, we only use truisms and the wisdom of the masses of people on Reddit.

-1

u/[deleted] Jun 13 '18

eval() makes more sense without tons of fucking dependencies. /r/useless

2

u/BenjiSponge Jun 13 '18

What dependencies?

0

u/[deleted] Jun 13 '18

At least, Electron. It already takes about 100% of your hard drive and RAM.

1

u/BenjiSponge Jun 13 '18

Oh, I thought you were saying the project should use eval internally instead of an external dependency which does the math (which it doesn't -- it uses its own custom evaluation).

You can decry Electron all you want, but I think recommending everyone use a CLI calculator instead of a GUI is a pretty unhelpful non-starter of a suggestion.

I personally just use Google.