|
|
|
|
|
by lelanthran
195 days ago
|
|
> I've used Claude in agent mode to port a very complex and spaghetti coded C application to nicely structured C++ You migrated code from one of the simplest programming languages to unarguably the most complex programm language in existence. I feel for you; I really do. How did you ensure that it didn't introduce any of the myriad of footguns that C++ has that aren't present in C? I mean, we're talking about a language here that has an entire book just for variable initialisation - choose the wrong one for your use-case and you're boned! Just on variable initialisation, how do you know it used the correct form in all of the places? |
|
It's actually far easier to me to tell that it's not leaking memory or accessing some unallocated data in the C++ version than the C version.
A simple language just pushes complexity from the language into the code. Being able to represent things in a more high-level way is entirely the point of this exercise because the C version didn't have the tools to express it more cleanly.