6 ms·
> In weakly typed languages like TypeScript I guess you mean JavaScript? In regards to speed, I really really recommend Vim. Macros are sorely missing in a lo
by ArchieMaclean 5y ago
> In weakly typed languages like TypeScript
I guess you mean JavaScript?
In regards to speed, I really really recommend Vim. Macros are sorely missing in a lot of editors, and they are really a great way to skip a huge amount of repetitive work.
- cdrini 5y agoCan you give some examples of what you use macros for? I've found I don't need macros in an editor that supports (1) multiple cursors, and (2) multi-file find/replace with regex groups.
- ArchieMaclean 5y agoNow that I think about it, I'm not sure I can come up with any non-contrived example (maybe this [1]). I guess what's good is that it fits right into the rest of Vim very nicely, so I can just edit like normal, instead of fiddling with regexes. [1] https://youtube.com/watch?v=FXCitlsA7eQ https://youtube.com/watch?v=FXCitlsA7eQ
- cdrini 5y agoWhat a fun example! That's exactly the sort of stuff I use multiple cursors/regex for. Due to a bit of luck (the refs only appear once, and only appear in order of mention), that specific example ends up being quite a bit easier and faster with multiple cursors (and I believe his example also relies on that). For the more general case, multiple cursors wouldn't cut it though, so I'd have to jump out and use code. And multiple cursors definitely wouldn't scale to multiple docs! For fun, I did that same example with multiple cursors + vs code: https://www.youtube.com/watch?v=H1uvNbtqJGk https://www.youtube.com/watch?v=H1uvNbtqJGk
- brabel 5y agoWhat kind of editor/IDE made for programming is missing macros?? Must be a really shitty one if it can't even do that.
- tom_ 5y agoNeither Visual Studio nor Xcode have them.
- ArchieMaclean 5y agoVSCode, I think?
- xixixao 5y agoNo, I think he means Typescript. Typescript doesn’t have (or even tries to have) a sound type system. It’s good to know its limitations and try to avoid code that will blow up despite passing type checking.