I know I'm not the most experienced member, but here's my take on this.
I'm categorizing these questions in three categories, because sometimes it's more appropriate than other times
You just can't figure it out how to get it to work in another programming language
If you've done proper research, made a good-faith attempt, and CAN'T figure it out, then yes, it's a good question for StackOverflow. But share your research and your attempt (why you can't port the solution for the other language and such).
You want feedback/alternate/more efficient approaches for another programming language
If you can port the solution from the other programming language, but are wondering if it could be done more efficiently or in a different way, post it on https://codereview.stackexchange.com/. It's more on-topic there, because it's really just a review and a fresh pair of eyes on existing code.
You find the question educational for this specific programming language too, and want to post a self-answered question
Using other questions to post self-answered questions can be helpful, in my opinion, but we're at risk of low-quality self answered questions, and people using copied self-answered questions for rep boosting.
Normally, people post self-answered questions after having overcome a problem with difficulty, and share their approach. This means they have encountered this problem in the real world, done proper research, and still find it worthy of posting a self-answered question.
There are other self-answered questions too, when someone has encountered a recurring problem in other questions, and wants to properly ask it, so the question is easy-to-find and minimal. In this case, it also is a real world problem, and you're also posting it to help others. These could previously be posted in documentation, but we don't have that anymore.
This opens a new type of self-answered question, where the person posting it can put little effort in both asking (because it's just a copy-paste from the other question) and answering (because he can port the solution from the other answer). In my opinion, that's a reason to be restrictive in these kind of self-answered questions. Users could use these kind of questions in an attempt to quickly boost their reputation.
Then, how do we judge those new copied self-answered questions?
In my opinion, there are several things that should be true for these questions:
- It's an actual relevant problem for this programming language (This isn't CodeGolf. Sure, it's cool you can do advanced statistics in JS, but noone's trying that.)
- You're properly referring to your sources (name the author of the question, link to it, and when basing your answer on an existing approach in a different programming language, do the same for the answer)
- It's not an "Open and shut" answer (take the question referred to in the question. I can answer that in SQL in less than 1 minute, but really, even most beginners should be able to figure out how to answer that)