« first day (4479 days earlier)      last day (505 days later) » 

 
5 hours later…
9:50 AM
Yo, general question for which I have a solution to the actual technical problem I need solved, but would like advice from people on how "people go about these sorts of things:" Software I'm working on needed one component, used in hundreds of files, swapped out for a different component (typescript / tsx). I achieved this using tools in emacs, simply projectile-replace-regexp. I could have also used tools in vscode ("replace all across project" or something maybe, idk). Continued:
Now, I have a couple hundred changed files in various directories. Not all files are changed, only the ones with this component. To these files, I need to add one line, as the first line is fine (an import statement). I've achieved this by, using magit, copying out all filenames with changes, putting these in a text file, then using a bash script and sed to input the file names line by line and do an operation. What other strategies could i have used? Just the same thing but different langs?
Was there something fancy I could have done operating on the fact that git was aware of which files was changed, instead of just basically copying the output of git status to get a list of files?
Maybe there's emacs functionality I'm missing out on I could have used here? Or maybe vscode has a really fancy plugin for swapping out typescript components? I'm curious what my other options may be
Not looking for like, actual python script examples or whatever, just like, "oh yeah, there's a good python library for this kind of thing..." along those lines
 
 
1 hour later…
 
2 hours later…
1:54 PM
 
 
1 hour later…
3:04 PM
Ryan Donovan on December 08, 2022
Everybody wants to learn more. But then sprints happen and you don’t make time for it.
 
 
1 hour later…
 
5 hours later…
8:39 PM
Welcome, Tyler! Don't take downvotes personally; they just reflect that this type of question may not be a great fit for Stack Overflow; see stackoverflow.com/help/on-topic. As a former software architect, I find it fascinating to think about such things! You might get more engaged discussion on it at a sister site: softwareengineering.stackexchange.comArin 23 secs ago
 

« first day (4479 days earlier)      last day (505 days later) »