Live data from Hacker News

A single line of code cost $8000

pietrasiak.com

341–350 of 423 posts

Re: A single line of code cost $8000

#342

Earlier quoted context omitted.

When I work on my own code, at home, with no-one to assist or review, I write tests, and open a PR anyway, and review it myself, sometimes the next day with fresh eyes, or even 10 minutes later after a quick walk in and out of the room and a glass of water. If you're not confident you can review a piece of code you wrote and spot a potentially disastrous bug like the one in OP, write more tests.

Humans are very good at not spotting their own mistakes, that's why writers have editors.

These days you can dump your code/diff to ChatGPT and ask it to criticize. Often most of it is junk -- irrelevant or incorrect suggestions. But the 1 in 10 suggestions is actually useful and correct, which can be immensely helpful.

Re: A single line of code cost $8000

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

Thats only half as bad as a certain company that had all thier users download an unwanted OS upgrade on the theory that one day they might click the install button by accident.

"We will stop filling your drives with unwanted windows 14 update files to you once you agree the windows 12 and 13 eulas and promise to never ever disconnect from the internet again."

Re: A single line of code cost $8000

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

We're talking about a MacOS App. Platform-agnostic is irrelevant.

Re: A single line of code cost $8000

#347
post #172

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

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! .

and when that fails #pragma once, oh the memories!

Re: A single line of code cost $8000

#348
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!

They were using a typed language, so testing was unnnecessary ;-)

Quite shameful if it was a language based on Javascript with zero tests in 2025.

Re: A single line of code cost $8000

#350

Earlier quoted context omitted.

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 develop…

I work for a big org. We’re about to deploy a small grafana setup for monitoring some test environments. Double digit spend per month, maximum. It’s pretty close to impossible to get IT, infosec, purchasing and finance to agree to this in a period of time that I’ll still be employed (and I’m not planning on leaving).

But, on the AWS marketplace I can click a button, a line item is added to our bill, and infosec are happy because it’s got the AWS checkmark beside it. Doesn’t matter what it costs, as long it goes through the catalog.

That’s why big companies use AWS.

At my last job, I worked for a vc backed startup. I reached out to our fund, and they put us in touch with AWS, who gave us $100k in credits after a courtesy phone call.

That’s why startups use AWS

Post reply on HN