Live data from Hacker News

A single line of code cost $8000

pietrasiak.com

101–110 of 423 posts

Re: A single line of code cost $8000

#104
post #13

I am always kind of a stickler about code reviews. I once had a manager tell me that I should leave more to QA with an offhand comment along the lines of "what is the worst that could happen" to which I replied without missing a beat "We all lose our jobs. We are always one bad line of code away from losing our jobs" The number of times I have caught junior or even experienced devs writing potential PII leaks is abso…

...And if there's no one around to review the code? The website makes it seem like it's a one person shop.

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.

Re: A single line of code cost $8000

#105
> As a designer, I value the experience product I create provides to the users. And this was not even a bad experience; it was actually harmful.

$229 per year on a closed source product and this is the level of quality you can expect.

You can have all the respect for users in the world, but if you write downright hazardous code then you're only doing them a disservice. What happened to all the metered internet plans you blasted for 3 months? Are you going to make those users whole?

Learning from and owning your mistake is great and all, but you shouldn't be proud or gloating about this in any way, shape, or form. It is a very awkward and disrespectful flex on your customers.

Re: A single line of code cost $8000

#106
Truth to be told, Google Cloud console is horrible mess for new people, who just wants quickly setup API, pay and don't have time to care about it anymore.

Well, you should hire contractor to set console for you.

"Designed for MacOS", aah don't worry, you will have the money from apes back in the no time. :)

Re: A single line of code cost $8000

#107
Why is nobody talking about what a shady business practice it is that cloud providers don't alert you to this kind of overage by default? Sure, you can set up alerts, but when you go 10x over your baseline in a short period of time, that should trigger an alert regardless of your configured alerts.

Re: A single line of code cost $8000

#108
I'm running an anti-censorship proxy service which uses Proxy Auto-Configuration (PAC) file which you can configure OS-wide or in the browser.

If the file contains invalid JS (syntax error, or too new features for IE on Win7/8), or if it's >1MB (Chromium-based browsers & Electron limit), and the file is configured system-wide, then EVERY APP which uses wininet starts flooding the server with the requests over and over almost in an endless loop (missing/short error caching).

Over the years, this resulted in DDoSing my own server and blackholing its IP on BGP level (happened 10+ times), and after switching to public IPFS gateways to serve the files, Pinata IPFS gateway has blocked entire country, on IPFS.io gateway the files were in top #2 requests for weeks (impacting operational budget of the gateway).

All of the above happens with tight per-IP per-minute request limits and other measures to conserve the bandwidth. It's used by 500 000+ users daily. My web server is a $20/mo VPS with unmetered traffic, and thanks to this, I was never in the situation as the OP :)

Re: A single line of code cost $8000

#109
post #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…

Or better yet, let the system package manager do it's job.

Re: A single line of code cost $8000

#110

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.

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

Post reply on HN