[racket] [htdp] Help with Exercise 12.4.2

From: Horace Dynamite (horace.dynamite at gmail.com)
Date: Wed Jul 7 15:32:43 EDT 2010

Well done Sam!
Some small suggestions though.

You're not consistent with the formatting of your documentation. Chose
either the verbose documentation format, i.e.,

;; Contract
....

;; Purpose
....

;; Template
....

;; Definition
....

;; Examples/Tests
....

Or the concise format (more common)

;; Contract ...
;; Purpose
(define (...))
;; Examples/tests

and stick to it!

For instance, the arrangements function has no examples, no templates.
Nor does the insert-everywhere/in-all-words, whereas the other
functions do. Consistency in your formatting is important for the
reader of your design, and for yourself.

Also, if it's possible, arrange the tests for each function right
after its definition. This makes it easier to follow. (I say if
possible, because sometimes you get an error saying a function isn't
defined yet if it appears below the tests)

I can't find any tests for the arrangements function.



Also, is it possible for the list administrator to hide Sam's
solution? I fear students searching Google for help will run across
this post and spoil the problem for themselves.

Horace.

On Wed, Jul 7, 2010 at 8:12 PM, Sam Griff <sgriff89 at gmail.com> wrote:
> I think I got it! It produces the correct results, but I'm not sure if
> it follows the design pattern properly:
>
> SNIPPED FOR SAKE OF OTHER STUDENTS...
>
> Thank you everyone for all your help!
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>


Posted on the users mailing list.