167 points · by jingweno · 11y ago · 73 comments
That said, the big issue is that we don't (yet) get to share Electron installs. If all desktop applications had to bundle all their dependencies, including what the OS already provides to them, they would be just as big.
Electron apps themselves aren't that big. Even Atom.
Actually, I tried fixing that problem with `asv`: https://news.ycombinator.com/item?id=10244073
For example, the only time I've maintained a proficiency in both a webdev stack and a native kit was when I was paid to work on both full-time.
Node's main appeal to me is a similar consolidation: using one language. At least until I find out I'm immortal.
Regarding size, it appears to be around 100 MB, so you could have 20971 separate installations of it before filling up a 2 TB drive.
Memory usage could be an issue, but whether that matters will depend on your audience the app. In this case, the aim is toward HN, so it doesn't seem like an issue.
[ed: Not directed at op, as such, just how silly the general node ecosystem is currently]
Edit:
One thing I would change is maybe make the overall border a more noticeable darker color, I keep getting confused as to where the borders are for when resizing it, and maybe a way of dragging and dropping the window (that is more obvious if it is there, I haven't figured out how to move the window without using what I assume to be KDE specific features).
https://vivaldi.net/en-US/blogs/teamblog/item/50-snapshot-1-...
You can have a sidebar in your browser with it's own webpage displayed, so you can have Hacker News open no matter what tab you're viewing.
Would save a lot of memory and time for everyone.
Cool !!
Oh.. Mac only right now.
I did a quick browse and search of the source on github for "comment", "vote" and "login". How do you handle logging in/submitting comments/votes? Just present the regular hn login inside the app, and use the hn site?
I thought there was some TOS/gentlman's agreement that APIs only had read access to stories, and one needed/should use the hn page for comments/votes? Perhaps I'm mistaken?
I suppose there's no rule against making a custom browser though -- while a bit heavy handed, I suppose there's really no difference between wrapping node+electron and enhancing the UI/UX with greasmonkey -- I suppose the main issue is to behave closely enough to a regular web visitor, so as not to put undue strain on the service, not demand that every visitor actually uses a general purpose browser...?
hacker-menu$ node install
module.js:338
throw err;
^
Error: Cannot find module 'hacker-menu/install'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3Anyway, keep up the good work ;)
1- http://i.imgur.com/5WjIJ5M.png
2- http://i.imgur.com/A1VHspL.png
This is about it. When you click on any link, it takes you to the website itself.
Currently the website has skewed image of the thing and then cropped round images of the thing.
I personally think that proxying by installing a 100 mb runtime just to be able to change some styles and change around some of the UX with custom javascript is a bit silly, but others here seem to like it, so who am I to judge?
If OP gave you free beer would you spit it out over him and say it's too bitter?
> "No thanks, I don't drink beer - cheers for the offer though!"