News for hackers. Stuff that matters.
Re:Ask HN: Programs that saved you 100 hours? by 978e4721a on Monday April 13, 2020 @03:11AM (#22853772)
Multicurors aren't replacement for macros in the same sense as loops aren't replacement for recursion.
Re:Ask HN: Programs that saved you 100 hours? by ikurei on Monday April 13, 2020 @05:34AM (#22854335)
That's snappy but not informative at all. What do you miss in multicursor that macros give you?

I also prefer vim's macros to multicursors, but I think it ammounts to nothing more than habit and preference.

Macros in Vim are going to be much more powerful, with movement commands and selection commands giving yo a more flexible system... I think? Hard to be objective after so many years of Vim.

Re:Ask HN: Programs that saved you 100 hours? by ethelward on Monday April 13, 2020 @06:42AM (#22854616)
> What do you miss in multicursor that macros give you?

Not OP, but to take a recent example (although it was in Emacs, I'm pretty sure it would work in any advanced editor), I had a macro select the second half of the open file and pipe it through sort and uniq to replace it with each unique line and their number of occurences. That's not doable with multi-cursors; their use cases intersect but don't overlap with macros ones.

Re:Ask HN: Programs that saved you 100 hours? by pasabagi on Wednesday April 15, 2020 @02:37AM (#22875187)
Honest question: when are loops not replacement for recursion?

My (admittedly naive) mental model of recursion is basically a loop where you bring your entire stack frame with you (or less, in the case of tail recursion).