There's a repository in GitHub that is coded in Python, and I want to port it to JavaScript, should I fork the Python repo and then change the code to JavaScript ?

有帮助吗?

解决方案

I don't think it makes sense to do so, unless you are going to keep some of the original code around in some functionally useful way - like reusing the test suite to test your port. (Of course, it's quite likely that you wouldn't be able to do that cross-language, in a convenient way - unless the test suite is coded in a completely language-agnostic way, e.g. by executing everything to be tested as a command line application using the shell, or by executing everything using a REST API.)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top