4 ms·
What you’re describing is a debugger!
by thehappypm 4y ago
What you’re describing is a debugger!
- febusravenga 4y agoAll my migration/tweak-production-db scripts run by default in dry run mode and require `--really` to override it. It's good excercise to write mutating code as much transactional way as possible.
- Bjartr 4y agoA debugger doesn't remember the proper steps for me, a written function does. I absolutely use this function in a debugging context. If it didn't exist, could I get at what I needed? Yes, but it's inconvenient to use reflection to get at private Java fields during a debugging session. Not impossible, just inconvenient. This function exists as a convenience, but it has to look weird, otherwise its convenience might lure someone into using it to do the wrong thing for a production use case. Good APIs make the right thing easy and the wrong thing hard.