Live data from Hacker News

A single line of code cost $8000

pietrasiak.com

171–180 of 423 posts

Re: A single line of code cost $8000

#171
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…

[flagged]

Re: A single line of code cost $8000

#172
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

Because developers can suck.

I work with developers in SCA/SBOM and there are countless devs that seem to work by #include 'everything'. You see crap where they include a misspelled package name and then they fix it by including the right package but not removing the wrong one!.

Re: A single line of code cost $8000

#173

Earlier quoted context omitted.

I make CPUs for a living. I'm happy these people exists, we'll always need faster CPUs.

The big clouds love these people too. So much of the software industry is just an outrageous combination of inexperience and "YOLO". Every problem can be solved by just giving AWS another $100,000 this month because we don't have time (and don't know how) to make even basically optimized software. So just burn the gas and electricity and give more money to the YAML merchants at Amazon.

That was the promise of "The Cloud".

Data centers are big and scary, no body wanted to run their own. The hypothetical cost savings of firing half the IT department was too good to pass up.

AWS even offered some credits to get started, first hit's free.

Next thing you know your AWS spend is out if control. It just keeps growing and growing and growing. Instead of writing better software, which might slow down development, just spend more money.

Ultimately in most cases it's cheaper in the short term to give AWS more money.

Apart of me wants to do a 5$ VPS challenge. How many users can you serve with 5$ per month. Maybe you actually need to understand what your server is doing ?

I'm talking non sense, I know.

Re: A single line of code cost $8000

#175
In comparison, when I shipped a Mac desktop application:

We used Sparkle, https://sparkle-project.org/, to do our updates. IMO, it was a poor choice to "roll their own" updater.

Our application was very complicated and shipped with Mono... And it was only about ~10MB. The Windows version of our application was ~2MB and included both 32-bit and 64-bit binaries. WTF are they doing shipping a 250MB screen recorder?

So, IMO, they didn't learn their lesson. The whole article makes them look foolish.

Re: A single line of code cost $8000

#176

Earlier quoted context omitted.

> Once a day would surely be sufficient. Weekly or monthly would be sufficient. I'd also like "able to be disabled manually, permanently" as an option, too.

How about never? If I want to update my software, I'll update it. I don't need the application itself to hound me about it, at any frequency.

Because historically your average user will not update the software and then some worm is going about causing massive damage all over the internet.

Re: A single line of code cost $8000

#177

Earlier quoted context omitted.

I make CPUs for a living. I'm happy these people exists, we'll always need faster CPUs.

The big clouds love these people too. So much of the software industry is just an outrageous combination of inexperience and "YOLO". Every problem can be solved by just giving AWS another $100,000 this month because we don't have time (and don't know how) to make even basically optimized software. So just burn the gas and electricity and give more money to the YAML merchants at Amazon.

> the YAML merchants at Amazon

I lost it

Re: A single line of code cost $8000

#178
post #69

Earlier quoted context omitted.

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

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

you're not their target audience

Re: A single line of code cost $8000

#179
post #7

Just amazed that ‘better testing’ isn’t one of the takeaways in the summary. Just amazed. Yea ‘write code carefully’ as if suggesting that’ll fix it is a rookie mistake. So so frustrating when developers treat user machines like their test bed!

Contrarian approach: $8000 is not a lot in this context. What did the CEO think of this? Most of the time it is just a very small speed bump in the overall finances of the company. Avoidable, unfortunate, but the cost of slowing down development progress e.g. 10% is much higher. But agree that senior gatekeepers should know by heart some places where review needs to be extra careful. Like security pitfalls, exponenti…

Imagine if that was Meta that had over 1B users with their messenger desktop app update functionality that did just that. The loss would be in the hundreds of millions.

> But agree that senior gatekeepers should know by heart some places where review needs to be extra careful. Like security pitfalls, exponential fallback of error handling, and yeah, probably this.

The lesson here is much better use of automated tests (The app likely has no tests at all) and proper use of basic testing principles like TDD would prevent such junior-level embarrassing bugs creeping up in production paid software.

That is the difference between a $100 problem vs a $200M problem.

See the case of Knight Capital [0] who lost $460M, due to a horrific deploy.

[0] https://www.henricodolfing.com/2019/06/project-failure-case-...

Re: A single line of code cost $8000

#180
From the article: "While refactoring it, I forgot to add the code to stop the 5-minute interval after the new version file was available and downloaded. It meant the app was downloading the same 250MB file, over and over again, every 5 minutes."
Post reply on HN