Rosetta Code:Village Pump/My code is better than existing one: Difference between revisions

Content added Content deleted
(Depends, my initial reaction would be add as an alternate.)
(One way.)
Line 9: Line 9:


BTW, It is a good idea to sign your comments, I retroactively added your signature above. Just put <nowiki> --~~~~ </nowiki> at the end of your edit and the wiki will transform that into a signature. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]])
BTW, It is a good idea to sign your comments, I retroactively added your signature above. Just put <nowiki> --~~~~ </nowiki> at the end of your edit and the wiki will transform that into a signature. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]])


===One way.===
(quick edit conflict resolution as Thundergnats answer above preceeded mine).

One could move the discussion to the talk page by leaving a short note to that effect on the page. In the section of the talk page you could put your code and why you tink it should replace what is shown. Is it more idiomatic? More readable? ...

RC isn't really about the fastest. There are really no good ways to judge speed, and speed is not usually mentioned in the task. One would expect answers to work in a "reasonable" time, and people have been known to note solutions they found quite slow; for example, a few languages might have implementations of "big" integers that make some calculations slow and have stated that their language took tens of minutes to perform task. (Especially if they got the feling that it was orders of magnitude longer than other languages).

If you have an innovative approach to solving the task as stated, then there can be two examplesfor a language. If you think that an existing example is poor/un-idiomatic then best to follow my first suggestion, giving a wider section of your languages community a say, or quote better adherence to the languages published quidelines.<br>
[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 11:38, 4 November 2018 (UTC)