>Date: Sat, 14 Jun 2003 17:08:30 -0400
>From: "Benjamin A. Okopnik" <ben-I3XkpHs46IUgsBAKwltoeQ@xxxxxxxxxxxxxxxx>
>
>On Sat, Jun 14, 2003 at 10:44:37PM +0200, David Jones wrote:
>> >MJD: Manufacture a function, 'repeated_substring' (...).
>>
>> I have seen answers posted for this quiz using function names such as
>> 'repeated_string' or 'sub_max', rather than the specified
>> 'repeated_substring' . Why??? If MJD (or anyone) wants to simply cut
>> and paste your code into their testing environment, with a minimum of
>> effort, you are _obviously_ making it harder for them.
>
>I think you give Mark-Jason way too little credit. The functions have to
>be peeled out of their containing scripts, anyway.
>
>---------------------------------------------------------------------
>....
>
>sub my_desired_function_name_yes_this_is_the_one_I_really_want {
>
>### Paste function _contents_ between here...
>### vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
>
>
>### ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>### ...and here
>
>}
>
>....
>---------------------------------------------------------------------
>
>Where's the problem?
Ah, but maybe _you're_ giving MJD way too little credit, and what
he actually does is have a script parse the body of [SPOILER]-subject'd
email message for function_name and all the stuff in the immediately following
curly brackets, then runs it through an automated test evironment!
:)
mike
ps quiz! see above :)
|