>I tell them to try to find what part of the code doesn't work before generating the fix
this makes me kinda sad. they don't do this on their own? are they not even a little curious
this makes me kinda sad. they don't do this on their own? are they not even a little curious
Some are. Some aren't. Usually a good indicator of career trajectory.
For me and you, "fixing" something means finding which assumption was violated and redesigning the solution in light of that. Sometimes this means adding code, sometimes it means making the solution smaller.
For a lot of people, "fixing" means adding code to make it work. This always makes the solution larger.
The latter group can still be curious! But they're curious about which addition makes it work, not about their incorrect beliefs.
What if the fix requires deleting a single line of code?
Is the additive fix to enshroud it in if (0) { } ?