Live data from Hacker News

A Taxonomy of Bugs

ruby0x1.github.io

11–20 of 26 posts

Re: A Taxonomy of Bugs

#11

Here's a step 0 for your debugging strategy: spend a few minutes thinking about what could account for the bug. Prior to its occurrence, you are thinking about what could go wrong, but now you are thinking about what did go wrong, which is a much less open-ended question.

I've had large success by treating the bug as a binary search problem as soon as I identify an initial state that's correct and a terminal state that's incorrect. It seems like a lot of work, but that's underestimating just how fast binary searches are.

Depends of course on the nature of the bug whether it's a good strategy.

Re: A Taxonomy of Bugs

#12
post #5

Earlier quoted context omitted.

> I had to automate the re-running of parts of the system to find the bugs Congratz, you've independently invented integration tests.

I don't always test but adding a lil test after finding and fixing a bug so you don't end up there again a second time is a great practice

Congratz, you've invented regression tests.

Re: A Taxonomy of Bugs

#13

Earlier quoted context omitted.

> I had to automate the re-running of parts of the system to find the bugs Congratz, you've independently invented integration tests.

Congrats, you've found someone who failed to invoke a buzzword that you know. EDIT: But Acktshally `the code I wrote to exercise the code I wrote` is a description of "Unit Testing", not integration testing.

Unit/integration tests are anything but a buzzword. And my intentions were not to belittle, but to praise.

Some actions simply make so much sense to do, that any sensible person (unaware of the concept) will start doing them given enough practice, and in process they "reinvent" a common method.

Re: A Taxonomy of Bugs

#15

Earlier quoted context omitted.

Congrats, you've found someone who failed to invoke a buzzword that you know. EDIT: But Acktshally `the code I wrote to exercise the code I wrote` is a description of "Unit Testing", not integration testing.

Unit/integration tests are anything but a buzzword. And my intentions were not to belittle, but to praise. Some actions simply make so much sense to do, that any sensible person (unaware of the concept) will start doing them given enough practice, and in process they "reinvent" a common method.

> And my intentions were not to belittle, but to praise.

With the stock eyeroll dismissal phrase.

Re: A Taxonomy of Bugs

#16

Earlier quoted context omitted.

Congrats, you've found someone who failed to invoke a buzzword that you know. EDIT: But Acktshally `the code I wrote to exercise the code I wrote` is a description of "Unit Testing", not integration testing.

Unit/integration tests are anything but a buzzword. And my intentions were not to belittle, but to praise. Some actions simply make so much sense to do, that any sensible person (unaware of the concept) will start doing them given enough practice, and in process they "reinvent" a common method.

As far as you knew that guy was aware what Unit Testing was since well before you were born. lol. I'm sure he appreciates all your nice compliments.

Re: A Taxonomy of Bugs

#17

Earlier quoted context omitted.

Unit/integration tests are anything but a buzzword. And my intentions were not to belittle, but to praise. Some actions simply make so much sense to do, that any sensible person (unaware of the concept) will start doing them given enough practice, and in process they "reinvent" a common method.

As far as you knew that guy was aware what Unit Testing was since well before you were born. lol. I'm sure he appreciates all your nice compliments.

Good thing he has knights in shining armor like you to defend him from my nasty insults.

Re: A Taxonomy of Bugs

#18

Earlier quoted context omitted.

As far as you knew that guy was aware what Unit Testing was since well before you were born. lol. I'm sure he appreciates all your nice compliments.

Good thing he has knights in shining armor like you to defend him from my nasty insults.

Good thing you can admit what you were doing.
Post reply on HN