4 ms·
Regex find and replace across a codebase works fine, especially if the functions aren't overload sets.
by JonChesterfield 3y ago
Regex find and replace across a codebase works fine, especially if the functions aren't overload sets.
- thfuran 3y agoIf you have a tiny codebase maybe, but if there are a couple million lines, it's likely that a pretty significant number of functions are sharing names.
- JonChesterfield 3y agoThose would be the overload sets
- alexvitkov 3y agoThe "pray you fixed them all" refers to the fact that you can't really for sure since someone can do foo[`asdf{some expression returning string}`](args) and then good luck catching that call when searching for say `asdf123`. This looks insane when I describe it like that, but you actually see it more often in JS than you'd imagine, and sometimes it may even look justifiable.