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

Depends, my initial reaction would be add as an alternate.
(Created page with "{{Vptopic |topic=My code is better than existing one |summary=I wrote a code for one of the problems that in my opinion is more concise and easier to read. What should I do? S...")
 
(Depends, my initial reaction would be add as an alternate.)
Line 1:
{{Vptopic
|topic=My code is better than existing one
|summary=I wrote a code for one of the problems that in my opinion is more concise and easier to read. What should I do? Should I replace previous version by mine? Or the fastest gun wins? I couldn't find the rules on this matter. -- [[User:Georgy|Georgy]] ([[User talk:Georgy|talk]]) 05:58, 4 November 2018‎ (UTC)
}}
 
It depends. If your version uses substantially different algorithms to accomplish the same goal, it may be worth adding as a second, alternate version. If it is essentially the same process, just clearer, my inclination would be to replace. Note that Rosetta Code is mostly geared toward demonstrating how your language works to people who may no be familiar with it, so extremely dense code to the point of obfuscation isn't really the goal. Some languages can really help it though... (lookin' at you, J) Conciseness bringing clarity is a win though.
 
Since you are a new user, my gut reaction would be to say: add as an alternate version and watch the reaction from the community.
 
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]])
10,327

edits