Philosophically maybe but practically that's not at all the case. Some ways of doing it are very bad and should not be used at all. The best answers to questions on how to do something that is very bad practice is to answer how to do it while also telling them why it's a bad idea and suggesting an alternative.
I'd agree so far, as a programming task can be completed in a better or worse ways, and that yes, an example of how to do it "right" should be supplied.
As I see it, saying "You shouldn't" in programming doesn't mean it's wrong. But rather it's you saying "You should avoid" or "There's a better way to do this" ifølge know what I mean.
As I see it, saying "You shouldn't" in programming doesn't mean it's wrong.
That's only true if you are a computer. If your sorting method takes tens of thousands of hours to sort a list of a hundred entries then it's wrong for every practical purpose and that's almost certainly the context that anyone asking has in mind.
1
u/wasdninja May 17 '21
Philosophically maybe but practically that's not at all the case. Some ways of doing it are very bad and should not be used at all. The best answers to questions on how to do something that is very bad practice is to answer how to do it while also telling them why it's a bad idea and suggesting an alternative.