Electron Post Counter for macOS
#1
Hello FreeVPS,

I recently wrote a counter to alert you near the end of the month whether you've made your posts or not, but I'll be rewriting it with Swift and XCode. 

Electron bundles Chrome in it, so it simply is too heavy for regular users.

I've removed the alerts for the time being. I'll re-add them in the next release.

Screenshots:

Spoiler: show
[Image: 510d1bb784.png]
[Image: 516e589e56.png]
[Image: 13fe2ed3e7.png]

If you have any suggestions, feel free to PM me or send an email to admin@dawgy.pw. I'll make sure to add them in the rewrite of the counter.

Download it here: https://dawgy.pw/app/FVPSCounter.zip

To anyone using Electron: never again. It's beyond terrible.


~ doghouch
I have VPS 18 (Hostigation) and 24 (HostDare).
#2
@doghouch

Out of question, why is it 90MB in size?
An application of this nature will usually occupy a few megabytes at most.
I'm not going to be that person who throws up another signature which displays my posts for the month. My goal is to be active enough to reach the post requirements without staring at a counter thinking, "Great! I'm done my posts, I can log off until next month."

-- FlamesRunner

My website } { GitHub } { Contact me: andrew@andrew-hong.me }

#3
Hmm... 90MB (246MB unpacked) is huge for a post counter lol. Yeah electron apps are heavy, not sure how VScode managed to make their installer 41MB.

How does one run this program by the way?

Edit: wow I just ran this Electron quick start example and after following the steps the directory size is ~140MB...
#4
(2017-10-07, 8:43:53 am)FlamesRunner Wrote: @doghouch

Out of question, why is it 90MB in size?
An application of this nature will usually occupy a few megabytes at most.

Because Electron is actually a standalone distribution of the Chrome/Chromium browser. Due to the laziness of developers these days, and their strong motivation to put JavaScript and Web-related technologies into anything. They decided that making applications the good ol' fashion way, was too much of a bother. So wouldn't it be easier if we'd just make Chrome standalone and code our crap into JavaScript? After all, it works on Android, so why shouldn't it work everywhere else. And that's how this frenzy of "how many things can we shovel into JavaScript or into how many things can we shovel JavaScript" was born.

And that's how you get to have ~150 meg "Hello World!" applications that consume as much system resources as the operating system itself. Except they run slower.

Many thanks to FreeVPS for VPS #13 and ZXPlay for providing such an amazing service. (Read: How to get a VPS here.)
#5
(2017-10-07, 5:50:25 pm)thirthy_speed Wrote: How does one run this program by the way?

Edit: wow I just ran this Electron quick start example and after following the steps the directory size is ~140MB...

It was only compiled for macOS.

(But yeah, @SLC is right. Electron bundles Chromium + NodeJS to render the UI.)
I have VPS 18 (Hostigation) and 24 (HostDare).
#6
What kind of inefficient terrible language bundles an entire web browser?
I mean, if they wanted to render NodeJS, why didn't they just use a lightweight browser or better yet, no browser?

IMO: Not a fan of NodeJS or Javascript.
I'm not going to be that person who throws up another signature which displays my posts for the month. My goal is to be active enough to reach the post requirements without staring at a counter thinking, "Great! I'm done my posts, I can log off until next month."

-- FlamesRunner

My website } { GitHub } { Contact me: andrew@andrew-hong.me }

#7
(2017-10-08, 12:38:09 am)FlamesRunner Wrote: What kind of inefficient terrible language bundles an entire web browser?
I mean, if they wanted to render NodeJS, why didn't they just use a lightweight browser or better yet, no browser?

IMO: Not a fan of NodeJS or Javascript.

This isn't a language that bundles an entire web-browser. This is a browser that bundles an entire language. People prefer to do the UI in a web-like manner. That's why we have things like CEF. Where you can do your back-end in something like C/C++ and front-end in a browser-like environment. Simply because there aren't a lot of decent solutions when it comes to UI for making general purpose applications.

But Electron doesn't do that. Electron is basically a standalone distribution of Chrome where you write your app in JavaScript and instead of you hosting it and asking people to open your app on whatever server you provide. You actually give them a copy of Chrome that does nothing else but render the front-end of your app. And to deal with the back-end, you also ask them to run an instance of NodeJS.

So yeah, can you think of something so ridiculous? Why haven't they turned this into a framework and simply allow the developers to distribute the scripts alone. Which may be a few Kb or Mb at most. Kinda like when you install the .NET framework to run applications written in .NET languages, like C#, F#, VB etc. Wouldn't that be simpler.

Many thanks to FreeVPS for VPS #13 and ZXPlay for providing such an amazing service. (Read: How to get a VPS here.)
#8
@SLC

Frankly, my current impression of Electron was never good. When I think of an electron, I think of speed, compactness, etc; properties of an electron, anyway.

I never found VB.net, etc to be very quick, but they get the job done with a single large framework download and tiny user written programs.

But Electron, well, as you've said, is practically a nightmare. Large, clunky, inefficient, badly designed are just a few descriptions that can be used to define the software.

Screw Electron. For macOS, Swift is a great way to write an application.
I'm not going to be that person who throws up another signature which displays my posts for the month. My goal is to be active enough to reach the post requirements without staring at a counter thinking, "Great! I'm done my posts, I can log off until next month."

-- FlamesRunner

My website } { GitHub } { Contact me: andrew@andrew-hong.me }





Users browsing this thread: 1 Guest(s)

Switch to mobile version

Sponsors: Ftpit - ZXPlay - GalaxyHostPlus - Verelox- HostUS - Host4Fun - Evolution-Host - NodeBlade - HostDare - VPSMost


BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo