User:Mwn3d/Word mincing: Difference between revisions

Content added Content deleted
(Taking Paddy's "print" suggestion)
No edit summary
Line 10: Line 10:
This is sort of like random/pseudo-random. In general, this means print to standard output (wherever that goes). In tasks which are about printers or GUIs it should be made obvious in the task description which one is required.
This is sort of like random/pseudo-random. In general, this means print to standard output (wherever that goes). In tasks which are about printers or GUIs it should be made obvious in the task description which one is required.


Also, it is ''very'' good practice to show example use and output from an example (where there is output to be shown). Some tasks (like [[Singly-linked list/Element definition]]) simply don't have output, so it doesn't need to be shown. Tasks which require calculation or generation of something should have output shown pretty much no matter what. If the output is long, consider making a separate page for your example and linking to it from the task page (a la [[99 Bottles of Beer/C++/Object Oriented]] and [[99 Bottles of Beer#An object-oriented solution]]).
Also, it is ''very'' good practice to show example use and output from an example (where there is output to be shown). Some tasks (like [[Singly-linked list/Element definition]]) simply don't have output, so it doesn't need to be shown. Tasks which require calculation or generation of something should have output shown pretty much no matter what. If the output is long (in bytes, not necessarily number of lines), consider making a separate page for your example and linking to it from the task page (a la [[99 Bottles of Beer/C++/Object Oriented]] and [[99 Bottles of Beer#An object-oriented solution]]).

==Run forever vs. hardware limits vs. "infinite"==
These all basically mean "don't add any new mechanisms for stopping the program". Programs which "run forever" should just keep calculating and spitting out answers until some outside force (OS, hardware limits, cosmic radiation, a blackout, 2012, etc.) stops the program. There should be nothing added to the program that would make the user able to end it cleanly.