I have a horribly tedious programming task ahead that involves manually hunting and replacing a bunch of strings in a million line C++ codebase. During such horrific tasks I like to learn new tools to alleviate some of the boredom. What's something I should use and learn?

@RustyCrab

Running a vim script on the codebase you can just do this to each file.

%s/string_to_replace/replace_string/gc

Then you just click type 'y' or 'n' to replace files. The time is minimized to a couple key presses.

@jmw150 no, its thousands of strings that have to be all replaces with something unique and unrelated. Find/replace of any variety is N/A
Follow

@RustyCrab

Sounds like you are in for a fun time. I love those kinds of programming problems, that are outside of a normal programmers comfort zone. Definitely time to learn meta-programming tricks.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.