Live data from Hacker News

A single line of code cost $8000

pietrasiak.com

411–420 of 423 posts

Re: A single line of code cost $8000

#411

Earlier quoted context omitted.

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

Last time I checked, statically built ffmpeg was 100 MB, at least on Linux.

18.4MB compressed[1].

FWIW the transitive dependencies of the nixOS ffmpeg add up to 764MB, but dynamically linking is always much larger than statically linking, and that calculation will include more than just the shared-libraries.

Also note that he app includes an ffmpeg that is 39MB uncompressed.

1: https://johnvansickle.com/ffmpeg/ (based on the arm64 build, since TFA is an arm64 app).

Re: A single line of code cost $8000

#412
post #112
post #69

Earlier quoted context omitted.

While we're listing complaints... 250MB for a screen recorder update?

And even when nothing changed?!? Fucking lazy developers aka "I have an idle ≥1Gb/s pipe to the download server". What happened to rsync/zsync/zstd (with dictionary)? There are so many good tools freely available to reduce wasted bandwidth when you insist on reinventing the wheel. sigh

I'd like to point out https://www.daemonology.net/bsdiff/ as a good, free, option for delta updates.

Re: A single line of code cost $8000

#413
post #89

Earlier quoted context omitted.

I worked on a product where there was basically no automated testing, just a huge product surface to click around with a bunch of options. Because of technical debt some of the options would trigger different code paths, but it was up to the developer to memorize all the code paths and test accordingly. After I shipped a bug the Director of Engineering told me I should "test better" (by clicking around the app). This…

Yep, my first job was at a company like that. Huge Windows desktop app built in Delphi. No automated testing of any kind. No testing scripts either. Just a lot of clicking around.

To be clear this is a pretty modern company, not 10 years ago. CI/CD absolutely was a common best practice.

Re: A single line of code cost $8000

#414
post #128
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…

When I built an app that “phones home” regularly, I added the ability for the backend to respond to the client with an override backoff that the client would respect over the default.

There is a standard HTTP header for this: Retry-After.

Re: A single line of code cost $8000

#415
post #232

Earlier quoted context omitted.

It wouldn't if you're not tracking user identity. Websites get this data pretty much by default and they don't need consent for it.

If you're deduplicating via IP or any other identifier, then it will be subject to the requirement for a legal basis.

How so? You could just store a hashsum instead of an identifier.

Re: A single line of code cost $8000

#416
post #356

Earlier quoted context omitted.

sad how many places take the position of "prod is QA and users are the best testers" lol

No meaningful consequences exist. So why not ?

from tfa

> One of our users, who lived in a house, had their internet provider cancel their contract due to enormous traffic generated during a month. It was extremely problematic as there was no other internet provider available around.

so, ¯\_(ツ)_/¯

Re: A single line of code cost $8000

#417

Earlier quoted context omitted.

> Instead of writing better software, which might slow down development, just spend more money. Except this is unironically a great value proposition.

We are throwing everything under the bus, including the user's battery, CPU, memory, bandwidth, the company's cloud costs and energy usage, just so developers can crap out software slightly faster.

We are providing users with valuable features at a faster rate, saving them and us time, which is a far more valuable asset than "the user's battery, CPU, memory, bandwidth, the company's cloud costs and energy usage".

Re: A single line of code cost $8000

#418
post #335

Earlier quoted context omitted.

I got 8 :)

Do you mean 8 homes with 10Gb Ethernet, or 1 home with 8 10Gb Ethernet connections?

8 of the 10 Gbits I meant :) sorry I see it reads a bit weird yes. So 8 gbit for single line is the max currently. But huge competition on the horizon, so I expect soon more :)

Re: A single line of code cost $8000

#419
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.

You can still get delta updates with Sparkle in an electron app. I am using it, and liking it a lot more than Electron Updater so far: https://www.hydraulic.dev

Re: A single line of code cost $8000

#420
post #416

Earlier quoted context omitted.

No meaningful consequences exist. So why not ?

from tfa > One of our users, who lived in a house, had their internet provider cancel their contract due to enormous traffic generated during a month. It was extremely problematic as there was no other internet provider available around. so, ¯\_(ツ)_/¯

Likewise, no meaningful consequences exist for the actual software creators here.

The User had to pinky promise not to do it again, the service was ultimately restored.

Aside from the 8k bill nothing happened to them.

This article feels more like a self name and shame. I wouldn't trust these people to run code on my computer

Post reply on HN