The Stack isn't always right.
ReviewingYour question of how to do better is predicated on the assumption that in these cases, the exampled answers are poor answers. However, reviewing both questions, I stand by both of them. Especially the Roman one. My
My best suggestion for these cases is togive answers like those you're referencing, and then if people object, go on Chat and attempt to convince people that these answers are right to compensate for any initial reactions. Do remember to utilize any improvements to the answer that are uncovered as part of the aforementioned convincing, though.