Live data from Hacker News

A single line of code cost $8000

pietrasiak.com

91–100 of 423 posts

Re: A single line of code cost $8000

#91
post #11

I would also put into question if you _really_ need to check for updates every 5 minutes. Once per startup is already enough, and if you're concerned about users who leave it on for days, it could easily be daily or even less often.

Check for updates every 5 minutes is a bug itself ;)

It is sort of fun (for $8,000) as it was “just” a screenshotter, but imagine this with bank app or any other heavily installed app.

All cloud providers should have alerts for excessive use of network by default. And they should ask developers if they really want to turn alerts off.

I remember Mapbox app that cost much more, just because provider did charge by months… and it was a great dispute who’s fault it was…

Re: A single line of code cost $8000

#92
post #3

Not to mention the cost users paid to download 250 MB every 5 minutes.

It seems a bit self centered to make their lost $8000 the focus of the article. The title should have been: "how a single line of code cost our users probably more than $8000"

Totally. I live in a place where many (most?) ISP plans have limited monthly downloads. I'd be so pissed off if my monthly allowance was blown by this series of boneheaded decisions.

Re: A single line of code cost $8000

#93

I read that as "A single line of code costs $8000" which, from the comments seems like a few others had the same thought. Reading the article it is not costs and the original title is "One line of code that did cost $8,000", so as some others have pointed out it is a bug that cost $8000.

I was expecting it to be about a good line of code that cost $8,000 in development time to write, which might be an interesting story.

Re: A single line of code cost $8000

#96
What about the bandwidth burned needlessly for thousands of users on their data plans.

At some scale such careless mistakes are going to create real effects for all users of internet through congestion as well.

If this was not a $8000 mistake but was somehow covered by a free tier or other plan from Google Cloud, would they still have considered it a serious bug and fixed it as promptly?

How many such poor designs are out there generating traffic and draining common resources.

Re: A single line of code cost $8000

#99
post #22
post #11

I would also put into question if you _really_ need to check for updates every 5 minutes. Once per startup is already enough, and if you're concerned about users who leave it on for days, it could easily be daily or even less often.

A 5 minute update check interval is usage-reporting in disguise. Way fewer people would turn off a setting labeled “check for updates” than one labeled “report usage statistics”.

never attribute to malice what can be attributed to incompetence

Re: A single line of code cost $8000

#100
I'm pretty conservative about adopting third-party libraries (due to the long-term issues each one has the potential to cause), but an app updater is probably worth it.

It's just tricky, basically one fat edge case, and a critical part of your recovery plan in case of serious bugs in your app.

(This bug isn't the only problem with their home-grown updater. Checking every 5 min is just insane. Kinda tells me they aren't thinking much about it.)

Post reply on HN