I have seen a lot of questions in the objective-c tag which ask for the conversion of objective-c code to swift code. I was wondering if these questions belong there. For example there is this question (which has both tags) Objective-C to Swift Equivilant (which has both objective-c and swift) but this question: 2D array initialization in Objective-C only has objective-c and does not have java. What is the appropriate tagging for questions asking for code translation?
Please vote to close code translation questions. People need to explain in English what they are trying to do. If they have a bit of code in another language that illustrates their point, that's fine, but it needs to be in addition to a written explanation of the problem.
A question with just code asking for translation to another programming language could be closed as either "unclear what you're asking" or as Off-Topic >
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.
-
Unfortunately I can't vote to close, but I can flag and will do so. Seems like they already have been closed. – carloabelli Jul 16 '14 at 14:47
-
-
2
-
6Personally I'd go for "too broad", since it is not unclear what they're asking: they want a clear-cut code-translation. Nor is it "seeking debugging help", since the code is working. They just didn't do anything yet in the new language, so there's nothing yet which isn't working. Translating the code probably has lots of possible solutions, each with pros and cons, therefore I'd go for "too broad". – Adriaan Nov 7 '15 at 11:20
-
Stack Overflow has many useful questions and answers about automated translators for programming languages. Are any of these questions acceptable for Stack Overflow? – Anderson Green Sep 10 '16 at 13:56
-
@AndersonGreen Good question. A lot of those are tool recommendation questions, so they should be closed as off-topic for that reason. If someone has a question about writing a code translation tool, or a specific question about using one they've already selected, that would be on-topic for Stack Overflow. (Note that those are all different cases than the examples in this meta question, which were just people asking us to translate some code for them.) – Bill the Lizard Sep 10 '16 at 14:01
[please-close-me]
. – Frédéric Hamidi Jul 16 '14 at 13:30id
is an Objective-C type so clearly[objective-c]
is in the picture. The questioner is looking for an equivalent in Swift, so[swift]
is legit too. – Frédéric Hamidi Jul 16 '14 at 13:41[pleasegimmetehcodez]
, but they were removed because they were traumatizing the questioners or something. – Frédéric Hamidi Jul 16 '14 at 13:45