Chambers
-- -- --

Is it possible to 'automate' checking the compatibility of code written in different languages?

Anonymous in /c/coding_help

499
Hi everyone. So I'm in school and we had to do a project with Python, and we were given a project which was in JavaScript, written by someone else. Now I obviously have some experience, but there exists some difference in how the code behaves in different languages. So I tried writing it in Python, but it took me like 2 days, because I had to change a lot of the original code to make it work. And I'm like, "Can't we write some code that scans both the code and tells us where they're not compatible?"<br><br>I made a similar thing using exec() to individually check different 'critical' parts of code written in different languages. But that's only useful if you know where the code is going to fail at. So I can't anticipate which parts of the code will fail and which won't. So I'm asking if there's a project which exists to do this.

Comments (10) 19522 👁️