@nixCraft I don't believe there's such a thing as bug-free software, not when even the biggest players like MS push code to production that breaks on leap years because they just added hours to a date instead of adding a year with the datetime lib
@nixCraft Experience should mean recognizing ways of mitigating bugs before they happen. Writing good tests, for starters, which means learning how to write testable code.
Code that will bind, parameterize, or escape by default. Patterns that prevent invalid input. Avoiding a static global state. Consistent and predictable naming. Favoring explicit over implicit behavior.
Being able to predict a future bug before it happens.
It's not perfect, but it's not the Wild West either.
Add comment