r/node • • Aug 22 '19

Announcing NodeGUI and React NodeGUI - Build native desktop apps with Javascript and CSS

https://blog.atulr.com/nodegui-intro/
251 Upvotes

42 comments sorted by

View all comments

49

u/Rockytriton Aug 22 '19

Just what I always wanted, a simple calculator app that takes up 10GB of disk space

0

u/[deleted] Aug 22 '19

[deleted]

-32

u/Rockytriton Aug 22 '19

it is sarcasm, but if this is really a node application, it's likely to have gigs of node_modules dependencies.

13

u/Railorsi Aug 23 '19

Not sure if sarcasm, but you definitely not looking at gigabytes for simple applications (and even complex apps rarely come near a gig).

-12

u/Rockytriton Aug 23 '19

my point is just that node is great for server applications, but for small GUIs that you intend users on the internet to download, it seems a bit dumb.

8

u/IHeartMustard Aug 23 '19

It's an alternative to electron apps, not just an alternative to some native toolkit necessarily.

It's also not a novel idea to use nodejs, just an attempt to have a more efficient implementation of them.

2

u/[deleted] Aug 23 '19

Interestingly enough, Adobe actually uses Node in their CC products for what seems to be a lot of their online stuff (stock, fonts, cloud storage, etc.)

For a legit app as small as a calculator, it seems a bit ridiculous.

I would like to note, though, that even electron has gotten much more efficient. Slack did a major overhaul and it runs far better and uses significantly less ram.

I know people will always hate on Node based ports, but the reality is that, it's significantly cheaper for companies small, medium, or even large to hire less people to develop more applications.

I think until someone is able to create React Native-esque for Linux, Windows, and OSX, it's what we have to use. Either way, these libraries have come a long way and it shows. They're viable solutions to have a cross platform app that is consistent across the board.

31

u/pm_me_ur_happy_traiI Aug 23 '19

Haha JavaScript bad.

-13

u/[deleted] Aug 23 '19

go suck your own dick you fucking gatekeeper.

Person is making a legit point (node_modules can bloat like crazy) and you lot are just down voting. Dumbfuckwits.

12

u/pm_me_ur_happy_traiI Aug 23 '19

Op: gatekeeps programming languages

Me: points it out

You: gatekeeper!

-1

u/tangled_up_in_blue Aug 23 '19

No, he’s just talking about how the large bloat of node_modules isn’t great for desktop apps. I’m a js dev, and yet I completely agree. If you think node_modules isn’t ridiculously bloated you don’t really use javascript

3

u/pm_me_ur_happy_traiI Aug 23 '19

Who gatekeeps the gatekeepers?

0

u/[deleted] Aug 24 '19

you

3

u/I_know_HTML Aug 23 '19

why would you ever ship a project with all of the files in node_modules? you guys are the idiots here. you never do thst lol

0

u/[deleted] Aug 24 '19 edited Aug 24 '19

Please tell me what you do apart from npm prune to delete dev deps? Do you nitty gritty pick apart every sub-sub-sub-sub module or is there some sort of tool that does it? Or are you just talking out of your ass hole?

You sound like someone who would write this blog post https://flaviocopes.com/node-modules-size/ "It's a choice, right?".

7

u/UNN_Rickenbacker Aug 23 '19

You mistook it by an order of magnitude

2

u/gketuma Aug 23 '19

When you build a node app for production, it doesn't ship with node_modules folder. That is why the ecosystem has bundlers like WebPack, and features like Tree shaking. A simple calculator app like this will have no more than 400kb of JS.

1

u/[deleted] Aug 27 '19

ty

1

u/I_know_HTML Aug 24 '19

that's only when it's uncompiled for development. usually you compile only the ones you actually need and won't have the bloat. development is bloated but production really isn't.

21

u/[deleted] Aug 23 '19

Oh look, another dinosaur native dev who refuses to recognize the glories of JavaScript.

3

u/Rockytriton Aug 23 '19

ha yeah, I am a dinosaur, but I do a lot of node coding, mainly with typescript though.

1

u/[deleted] Aug 24 '19

oh look another node + react fresh dev who thinks they are a programmer and is scared to touch any other programming language. :)))

2

u/[deleted] Aug 24 '19

You're in a Node sub.

-1

u/[deleted] Aug 23 '19

[removed] — view removed comment

7

u/DilatedTeachers Aug 23 '19

It's a REALLY big int