method

Rewriting a script into a callable method

Tagged:  •  

After you have written your small test script and tested it interactively, it is often useful to convert it to a reusable method. The whole point about Methods is provide further modularization of your programs into more easily understood units of code.

Using the "Fun with MD5 and Random" example code posted on this blog by Samuel Montgomery October 3rd, 2007, as a starting point I wanted to use that routine as a callable method.

(Incidently 'method' is really another name for Procedure or Function in other languages)

Here is the original code : random.st

 | d i l s |

Syndicate content

User login