Porter du code contre le comportement enregistré
Coeurdar verdict : Recommended
Before rewriting a program in another language, you record what the old one actually does: for each input, its output, its error, the files it writes. That recording becomes the specification. You then port one piece at a time, replay every recorded case against it, and only switch the piece on once every case matches. The old code stays in place as a safety net: anything the port cannot handle yet goes back to it. Rust Anything tools this loop for a port to Rust, but the method works for any pair of languages, and even for a rewrite in the same language.
Type : Method · Last checked 2026-11-27