Live data from Hacker News

A single line of code cost $8000

pietrasiak.com

281–290 of 423 posts

Re: A single line of code cost $8000

#281
post #274
post #217

Earlier quoted context omitted.

As I recall, it’s an Electron app. I just checked and the current version of Google Chrome is 635 MB, with its DMG being 224 MB. So yes, it’s insane, but easy to see where the size comes from.

Tauri has been a thing for a while, it baffles me people still choose Electron without a good reason to do so. Also webapps are just great nowadays most OS support install PWA's fairly decently no? ffs

Tauri is not as platform-agnostic as Electron is because it uses different web views depending on the platform. I ran into a few SVG-related problems myself when trying it out for a bit.

For example, on Linux, it uses WebKitGTK as the browser engine, which doesn't render the same way Chrome does (which is the web view used on Windows), so multi-platform support is not totally seamless.

Using something like Servo as a lightweight, platform-independent web view seems like the way forward, but it's not ready yet.

Re: A single line of code cost $8000

#282
post #24

It would also be nice if the update archive wasn't 250MB. Sparkle framework supports delta updates, which can cut down the traffic considerably.

This is an electron app.

Which is even better for incremental updates.

If just some JavaScript files change, you don't need to redownload the entire Chromium blob.

Re: A single line of code cost $8000

#283
post #274

Earlier quoted context omitted.

Tauri has been a thing for a while, it baffles me people still choose Electron without a good reason to do so. Also webapps are just great nowadays most OS support install PWA's fairly decently no? ffs

Tauri is not as platform-agnostic as Electron is because it uses different web views depending on the platform. I ran into a few SVG-related problems myself when trying it out for a bit. For example, on Linux, it uses WebKitGTK as the browser engine, which doesn't render the same way Chrome does (which is the web view used on Windows), so multi-platform support is not totally seamless. Using something like Servo as a…

Thanks, didn't knew about Servo, hopefully we'll get there Electron really is bloated and any app using it eats my ram whatever how much of it i have

Re: A single line of code cost $8000

#285
post #114

For people finding this thread via web search in the future: screen.studio is macOS screen recording software that checks for updates every five minutes. Somehow, that alone is NOT the bug described in this post. The /other/ bug described in this blog is: their software also downloaded a 250MB update file every five minutes. The software developers there consider all of this normal except the actual download, which c…

> their software also downloaded a 250MB update file every five minutes How on earth is a screen recording app 250 megabytes

It was probably written by the type of programmers who criticise programmers like me for using "unsafe" languages.

Re: A single line of code cost $8000

#286
> Add special signals you can change on your server, which the app will understand, such as a forced update that will install without asking the user.

Ummm no. Even after this they haven't learned. Auto update check on app load and prompt user for download/update.

Re: A single line of code cost $8000

#287

I find it ludicrous that the developers of an app as insignificant as a screen recorder would think it's necessary to check for updates every 5 minutes. Once a day would surely be sufficient.

I honestly lost so much respect for the author after reading this that I completely bailed on the article. Every 5 minutes update check is entirely unhinged behaviour.

Why pay for your own runners when you can do CI/CD on your users’ machines?

Re: A single line of code cost $8000

#288
post #285

Earlier quoted context omitted.

> their software also downloaded a 250MB update file every five minutes How on earth is a screen recording app 250 megabytes

It was probably written by the type of programmers who criticise programmers like me for using "unsafe" languages.

You probably deserve to be criticized if you think this is the culprit.

Re: A single line of code cost $8000

#289

Earlier quoted context omitted.

Screen recorder under 100 bytes: ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 output.mp4

Screen recorder in under 100 bytes: Open QuickTime and hit Command-Shift-N. Press record.

Screen recorder in 0 bytes: open camera app on phone and hit record.

Re: A single line of code cost $8000

#290
post #114

For people finding this thread via web search in the future: screen.studio is macOS screen recording software that checks for updates every five minutes. Somehow, that alone is NOT the bug described in this post. The /other/ bug described in this blog is: their software also downloaded a 250MB update file every five minutes. The software developers there consider all of this normal except the actual download, which c…

> their software also downloaded a 250MB update file every five minutes How on earth is a screen recording app 250 megabytes

I would bet money it's electron
Post reply on HN