One additional point in favor of using editing macros to do lots of work at once is that it reduces the odds you might make a mistake. Hand-editing dozens of the the lines of code, especially if it’s very tedious, could mean a typo or two slips in, which could be annoying to go back and fix and can hide in plain sight; an automated macro will either get them all right, or get them all wrong in a similar way, hopefully sticking out.
Good point! I’m noticing that in VS Code, the autocomplete is getting scary smart. You’ll start doing some tedious edit and the AI is immediately like “so… continue for the rest of this block like this?” and you can just hit tab. For a while I would hit escape in annoyance when it did that. Why would I trust the AI not to introduce subtle errors? But (a) that doesn’t seem to happen, and (b) it does a good job of highlighting the parts that will actually change so you can vet it pretty easily. It’s pretty freaking magical (modulo the part where it’s possibly a harbinger of dooooooom).
One additional point in favor of using editing macros to do lots of work at once is that it reduces the odds you might make a mistake. Hand-editing dozens of the the lines of code, especially if it’s very tedious, could mean a typo or two slips in, which could be annoying to go back and fix and can hide in plain sight; an automated macro will either get them all right, or get them all wrong in a similar way, hopefully sticking out.
Good point! I’m noticing that in VS Code, the autocomplete is getting scary smart. You’ll start doing some tedious edit and the AI is immediately like “so… continue for the rest of this block like this?” and you can just hit tab. For a while I would hit escape in annoyance when it did that. Why would I trust the AI not to introduce subtle errors? But (a) that doesn’t seem to happen, and (b) it does a good job of highlighting the parts that will actually change so you can vet it pretty easily. It’s pretty freaking magical (modulo the part where it’s possibly a harbinger of dooooooom).
Oh, yeah, AI can definitely introduce subtle errors, but maybe at a lower rate? I think the main value is seeing a big change at once, i.e.:
12345
12345
12b45
12345
12345
highlights the error immediately, whatever method is used to perform the quick or instant change.