Rosetta Code talk:Solve a Task

Revision as of 16:25, 9 January 2014 by rosettacode>Paddy3118 (→‎Alternative Solutions: No "proper" method but ...)

Alternative Solutions

Is there a proper method for adding alternative solutions for a particular language for alreadys-solved tasks? Binki (talk) 15:23, 9 January 2014 (UTC)

No "proper" method, but I usually only consider adding another solution if it is sufficiently different from what is there. This could be using a different algorithm (if the task allows), or a different style of programming if your language allows say functional and OO styles and the two forms of solution look sufficiently different. We try not to have another example in the same language just because someone else has managed to solve the task, and you really need to ask if you could improve an existing solution first. Looking at most tasks examples, hardly any have multiple solutions in the same language. --Paddy3118 (talk) 16:25, 9 January 2014 (UTC)
Return to the project page "Solve a Task".