‘Simple’ bugs get a bit more expensive than this… https://en.m.wikipedia.org/wiki/Knight_Capital_Group#2012_st... 440m usd
A single line of code cost $8000
51–60 of 423 posts
Re: A single line of code cost $8000
#52With public sector procurement, $8000 is a pretty standard price for a line of code.
Re: A single line of code cost $8000
#53‘Simple’ bugs get a bit more expensive than this… https://en.m.wikipedia.org/wiki/Knight_Capital_Group#2012_st... 440m usd
Re: A single line of code cost $8000
#54Just 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!
How do you adjust your testing approach to catch cases like this? In my experience, timing related issues are hard to catch and can linger for years unnoticed.
Although, after such a fuck up, I would be tempted to make a pre-release check that tests the compiled binary, not any unit test or whatever. Use LD_PRELOAD to hook the system timing functions(a quick google shows that libfaketime[0] exists, but I've never used it), launch the real program and speed up time to make sure it doesn't try to download more than once.
Re: A single line of code cost $8000
#55Re: A single line of code cost $8000
#56> Screen Studio is a screen recorder for macOS. It is desktop app. It means we need some auto-updater to allow users to install the latest app version easily. No, it doesn't mean that. Auto updater introduced series of bad outcomes. - Downloading update without consent, causing traffic for client. - Not only that, the download keeps repeating itself every 5 minutes? You did at least detect whether user is on metered…
Thinking of it, the discussed do-it-yourself update checking is so stupid that malice and/or other serious bugs should be assumed.
Re: A single line of code cost $8000
#57‘Simple’ bugs get a bit more expensive than this… https://en.m.wikipedia.org/wiki/Knight_Capital_Group#2012_st... 440m usd
Re: A single line of code cost $8000
#58Oh boy, I know of at least one case where a single line of code cost ~$500k… Curious where the high-water mark is across all HNers (:
Our team had a bug that cost us about $120k over a week.
Another bug running on a large system had an unmeasurable cost. (Could $K, could be $M)
Re: A single line of code cost $8000
#59Re: A single line of code cost $8000
#60I 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.