No, band-aid code is a real problem that some coders have.
DJ Coco wrote:
36) I managed to fix the bug in my code - I don't know how though
37) The bug is back ): Please take a look at my code that consists to 75% of hard-coded numbers
Instead of fixing the root of the problem, they just try to add "patches"- code that seems to fix the problem despite the coder not knowing why the bugs occurs. The patch may be as simple as adding code just to prevent a visual bug at the highest level of the code.
The bug s still present, though, now a bit tougher to find and thus fix. It gets worse when the bug propagates to other code. You'll have to add more and more band-aid code- deteriorating the code base. However, if you fixed the core of the problem, you can remove all the band-aids and of course have no worries of future bugs stemming of from it, again, because it's been fixed appropriately.
No, band-aid code is a real problem that some coders have.
[quote="DJ Coco"]
36) I managed to fix the bug in my code - I don't know how though :)
37) The bug is back ): Please take a look at my code that consists to 75% of hard-coded numbers[/quote]
Instead of fixing the root of the problem, they just try to add "patches"- code that seems to fix the problem despite the coder not knowing why the bugs occurs. The patch may be as simple as adding code just to prevent a visual bug at the highest level of the code. [i]The bug s still present[/i], though, now a bit tougher to find and thus fix. It gets worse when the bug propagates to other code. You'll have to add more and more band-aid code- deteriorating the code base. However, if you fixed the core of the problem, you can remove all the band-aids and of course have no worries of future bugs stemming of from it, again, because it's been fixed appropriately.