Comment on How does code that's meant to fix one bug break other features?

nomecks@lemmy.wtf ⁨6⁩ ⁨days⁩ ago

Good programmers try to follow the DRY principle: Don’t Repeat Yourself. A lot of times you need to do the same actions over and over in different parts of a program, so you write a function to do that, then just repeatedly call the function. If you have to modify a function to fix a bug in one place it might change the input/output somewhere else unexpected.

source
Sort:hotnewtop