{"action":"created","issue":{"url":"https://api.github.com/repos/Codewars/codewars.com/issues/115","labels_url":"https://api.github.com/repos/Codewars/codewars.com/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/Codewars/codewars.com/issues/115/comments","events_url":"https://api.github.com/repos/Codewars/codewars.com/issues/115/events","html_url":"https://github.com/Codewars/codewars.com/issues/115","id":92872935,"number":115,"title":"Automatic translation from JavaScript to CoffeeScript and vice-versa","user":{"login":"bkaes","id":6301773,"avatar_url":"https://avatars.githubusercontent.com/u/6301773?v=3","gravatar_id":"","url":"https://api.github.com/users/bkaes","html_url":"https://github.com/bkaes","followers_url":"https://api.github.com/users/bkaes/followers","following_url":"https://api.github.com/users/bkaes/following{/other_user}","gists_url":"https://api.github.com/users/bkaes/gists{/gist_id}","starred_url":"https://api.github.com/users/bkaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkaes/subscriptions","organizations_url":"https://api.github.com/users/bkaes/orgs","repos_url":"https://api.github.com/users/bkaes/repos","events_url":"https://api.github.com/users/bkaes/events{/privacy}","received_events_url":"https://api.github.com/users/bkaes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-03T13:12:24Z","updated_at":"2015-07-03T14:09:53Z","closed_at":null,"body":"Whenever I write a JS kata, I usually drop the JS code in http://js2.coffee/, clean some left-over variables and call it a day. Similar for CoffeeScript. \r\n\r\nGiven that CoffeeScript is essentially JavaScript couldn't you simply automate the translation process for those languages? It feels a little bit strange to translate a kata to CoffeeScript, since that's basically free honor."},"comment":{"url":"https://api.github.com/repos/Codewars/codewars.com/issues/comments/118360724","html_url":"https://github.com/Codewars/codewars.com/issues/115#issuecomment-118360724","issue_url":"https://api.github.com/repos/Codewars/codewars.com/issues/115","id":118360724,"user":{"login":"bkaes","id":6301773,"avatar_url":"https://avatars.githubusercontent.com/u/6301773?v=3","gravatar_id":"","url":"https://api.github.com/users/bkaes","html_url":"https://github.com/bkaes","followers_url":"https://api.github.com/users/bkaes/followers","following_url":"https://api.github.com/users/bkaes/following{/other_user}","gists_url":"https://api.github.com/users/bkaes/gists{/gist_id}","starred_url":"https://api.github.com/users/bkaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkaes/subscriptions","organizations_url":"https://api.github.com/users/bkaes/orgs","repos_url":"https://api.github.com/users/bkaes/repos","events_url":"https://api.github.com/users/bkaes/events{/privacy}","received_events_url":"https://api.github.com/users/bkaes/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T14:09:53Z","updated_at":"2015-07-03T14:09:53Z","body":"> I support this. Earned lots of honour this way though :)\r\n\r\nYeah, I've seen your two \"CoffeeScript translation kumited\" comments and thought \"Wait… CS is almost always trivial to translate, why don't we let a PC do that?\". \r\n\r\n> However, sometimes there can be tricks that will pass in JS but won't pass in CS. With some experience with CS translations, I actually do some manual improvements when I translate, not just blindly copy-paste.\r\n\r\nThe automatic CS translation of my recent kata was horrible. I had to improve almost everything. But given that `js2coffee` has a JavaScript implementation and therefore could be used in the kata editor, I think it might be a valid way to add some semi-automatic translation.\r\n\r\n> Also, when Python 3 comes online, it can also be used in a similar automated way (provided there exists some way to translate between Python versions automatically).\r\n\r\nPython has [a built-in library](https://docs.python.org/2/library/2to3.html) for Python2 to 3. But that's a rather big change and something different. Was there some word that Python3 would be used along Python2? Because many katas aren't Python3 compliant, IIRC."}}