News for hackers. Stuff that matters.
Re:The ten years bug: solving a bug that wont go away by hackd on Tuesday September 20, 2016 @04:40AM (#12538022)
Click bait title, its about a bug that has the value "ten years " as part of the issue, not a bug that took ten tears to solve like the title implies...
Re:The ten years bug: solving a bug that wont go away by alphaXp on Tuesday September 20, 2016 @04:54AM (#12538068)
At least it's not "You wouldn't believe why we could not solve this bug!" :)

It's about issues that would have lasted for ten year, without the possibility to be fixed, if we hadn't discovered the root cause - the caching policy issue.

Re:The ten years bug: solving a bug that wont go away by StavrosK on Tuesday September 20, 2016 @06:55AM (#12538506)
> It's about issues that would have lasted for ten year, without the possibility to be fixed, if we hadn't discovered the root cause

Don't all issues last forever without the possibility to be fixed if you don't discover the root cause?

I agree, poor title.

Re:The ten years bug: solving a bug that wont go away by ars on Tuesday September 20, 2016 @06:01AM (#12538290)
Terrible title. Poor article.

Anyway, 10 years is way too long for caching. A week is just fine, that's plenty long to not have many requests, but not so long you can never change anything.

Plus if your user hasn't been there in a week, why are you still in their cache?

Re:The ten years bug: solving a bug that wont go away by ponyfleisch on Tuesday September 20, 2016 @05:18AM (#12538160)
I suppose pushing articles about "bugs" caused by sheer incompetence is a way to get traffic for startups nowadays?
Re:The ten years bug: solving a bug that wont go away by anc84 on Tuesday September 20, 2016 @05:47AM (#12538255)
A popup before I could read the first sentence? Closed the tab, flagged the story, enjoyed the rest of my afternoon.
Re:The ten years bug: solving a bug that wont go away by userbinator on Tuesday September 20, 2016 @06:47AM (#12538468)
I'm curious how it got set to 10 years seemingly without anyone noticing.

Then again, after going to their main site to find out what Jaco is...

The easiest way to watch and analyze your users’ behavior

...perhaps some bugs are better left unfixed. :-/

Re:The ten years bug: solving a bug that wont go away by bhaak on Tuesday September 20, 2016 @05:47AM (#12538256)
I would be surprised if browsers really would cache a file for 10 years. That sounds excessive and browsers shouldn't trust servers too much anyway.

At least when they are updated, I'd expect them to flush the cache.

Re:The ten years bug: solving a bug that wont go away by Retr0spectrum on Tuesday September 20, 2016 @05:57AM (#12538283)
Also, very few people use the same device and browser for 10 years straight.
Re:The ten years bug: solving a bug that wont go away by ars on Tuesday September 20, 2016 @06:08AM (#12538305)
I have, 13 years now.

Can't remember if it's the same hardware, but it's the same Debian OS installation upgraded consistently. Same firefox profile.

Re:The ten years bug: solving a bug that wont go away by gmazza on Tuesday September 20, 2016 @09:28AM (#12539315)
Two hard things in computer science:

- cache invalidation: check (root cause of the actual bug);

- naming things: check (terrible name for an article, as others already pointed out).

Re:The ten years bug: solving a bug that wont go away by barking on Tuesday September 20, 2016 @05:01AM (#12538099)
I have a non-reproducible bug (at least I think it's just one and I've failed to reproduce it) in my software.

It causes the entire UI to disappear and the user ends up opening a new instance of the program. I only know it exists because about once every few months a user can't upgrade and when I remote in and look in the task manager, an instance of the program is running. I have an idea how to track it down and fix it but there's always something more important to be done.

[dead]
Re:The ten years bug: solving a bug that wont go away by DanBC on Tuesday September 20, 2016 @05:35AM (#12538209)
> I hope the idiot got fired

In general firing people is a terrible way to improve quality.

People look to airline style investigations as a way to improve quality for good reasons.

Re:The ten years bug: solving a bug that wont go away by partycoder on Tuesday September 20, 2016 @11:43AM (#12540373)
Imagine a patient dies during surgery because the surgeon didn't wash their hands. Would you give the surgeon a second chance or just fire the person and revoke his license for not following basic hygiene procedures?

Likewise, a programmer that doesn't provide deliverables that are maintainable is also disservicing the company, and society as a whole.

There's a difference between a legitimate error and negligence. In this case, the problem looks like negligence and was easily avoidable.

Re:The ten years bug: solving a bug that wont go away by nitrogen on Tuesday September 20, 2016 @05:02AM (#12538102)
I believe this comment has value, but it could stand to be worded better. The last paragraph about firing in particular is probably the most out of line with HN's tone.
Re:The ten years bug: solving a bug that wont go away by partycoder on Tuesday September 20, 2016 @11:51AM (#12540445)
True, not the correct tone.

The code quality seemed low and to me it was negligence and a disservice to the employer that had to compromise their reliability for quite a long time and spend significant effort root causing the problem.

Re:The ten years bug: solving a bug that wont go away by sctb on Tuesday September 20, 2016 @04:00PM (#12542825)
> I hope the idiot got fired and sent back to the planet of the apes.

That's not just tone, that's the kind of personal attack that we ban accounts for. Please don't do this here.

Re:The ten years bug: solving a bug that wont go away by nitrogen on Tuesday September 20, 2016 @05:02PM (#12543393)
I hope I wasn't out of line by vouching the comment to reply to it. I see it is dead again, but I think maybe a lesson was learned? Anyway, thanks for keeping HN's discussions at such an exceptional level. There really is nowhere else like it that I'm aware of.
Re:The ten years bug: solving a bug that wont go away by partycoder on Tuesday September 20, 2016 @04:02PM (#12542843)
OK, my apologies.
Re:The ten years bug: solving a bug that wont go away by detaro on Tuesday September 20, 2016 @05:22AM (#12538171)
What exactly would differently written code ("5 seconds creating a variable") have helped here? Nothing in the article indicates that they even realized that it was a caching issue, and if they did the header would have been trivial to grep for.

Also, your tone is really not called for.

Re:The ten years bug: solving a bug that wont go away by partycoder on Tuesday September 20, 2016 @11:38AM (#12540317)
Because variables have identifiers, and the identifier can allow the programmer to be more expressive and explicit about what the number means. Then, in the context of the code, you use the variable instead of just the value, making the code more readable.

https://en.wikipedia.org/wiki/Magic_number_(programming)#Unn...

Re:The ten years bug: solving a bug that wont go away by detaro on Tuesday September 20, 2016 @01:12PM (#12541126)
I'm aware of the principle, but that does not answer how that would have helped them here or how this indicates anything about the quality of the entire code base. Nothing in the writeup suggests that they had difficulty understanding this particular piece of code or that they were searching for something specific but didn't find it due to bad naming.

Exposing this value as an external configuration parameter in a place that is more often looked at might have helped someone to realize caching might be an issue earlier, but it could easily have been ignored as well.

Re:The ten years bug: solving a bug that wont go away by partycoder on Tuesday September 20, 2016 @04:01PM (#12542833)
Explicitly saying "I want 10 years" is different than saying "a large number. Do the math to know more". This is how identifiers can help understanding the programmer intention.

Then, you can define the time length as an arithmetic operation. Such as 10 * (60 * 60 * 24) * 365.

These might be still considered magic numbers to certain extent, but it's simpler to recognize numbers such as 60, 24 and 365.