Ask HN: Why I failed interview by fixing bug without using debugger?
1–10 of 27 posts
Re: Ask HN: Why I failed interview by fixing bug without using debugger?
#2Re: Ask HN: Why I failed interview by fixing bug without using debugger?
#3Re: Ask HN: Why I failed interview by fixing bug without using debugger?
#4Re: Ask HN: Why I failed interview by fixing bug without using debugger?
#5Did you put a bunch of print statements all over the place or really, any at all? Did you comment out some lines of code and repeatedly run the sample? Did you make changes of any kind and repeatedly run the sample to understand what was happening?
If you answered Yes to any of the above, then you went about it the hard way. You could have introduced additional errors into the code in a non-trivial case. You could have left debugging/print statements in places they shouldn't be. There are probably other good reasons why you shouldn't do it this way.
Re: Ask HN: Why I failed interview by fixing bug without using debugger?
#6How is this question answerable with the information given? How do we even know that's why you "failed" the interview?
Re: Ask HN: Why I failed interview by fixing bug without using debugger?
#7Re: Ask HN: Why I failed interview by fixing bug without using debugger?
#8Re: Ask HN: Why I failed interview by fixing bug without using debugger?
#9Not really anywhere near enough information to answer the question as it is stated, but in order to provide you with an answer, it could come down to how you identified and/or fixed the bug. Did you put a bunch of print statements all over the place or really, any at all? Did you comment out some lines of code and repeatedly run the sample? Did you make changes of any kind and repeatedly run the sample to understand…
To give an example, one of the bug is for (int i = 0; i It is obvious so I just change <= to <.
Re: Ask HN: Why I failed interview by fixing bug without using debugger?
#10Earlier quoted context omitted.
I was given the reason explicitly that I failed because I didn't use debugger to fix the bug.
ok then explain to us how you did fix the bug without a debugger ?