bsmall2 Learning Racket

CKOgden

A Theodorus spiral with plot instead of turtles. The coding went quickly because it was easy to translate into Racket the math from Python code.

Spiral Plot with Vectors

Read more...

It was a good exercise to make slides that show Japanese characters going from top to bottom and the lines going from right to left.

TomiMatsu YoshiO YamaNiYosete slide

都城の詩人、 富松良夫は「南九州の宮沢賢治」と呼ばれているようです。興味深い人です。

The motivation for the exercise came from last week's opportunity to see a talk about a local poet. Paul Goodman wrote somewhere about the importance of “incidental poetry.” His example was the dedication of a local monument or park. The comment about incidental poetry came to mind again when the speaker said that the local poet Tomimatu Yoshia wrote the local school's song. The writers Ueno Hidenobu and Kawahara Kazuyuki are known for singing a school song by Miyazawa Kenji.

TomiMatsu YoshiO AkiToKirishima slide

Unless I get a chance to read Practical Typography (by the writer who also did Beautiful Racket)the troubles with punctuation will make me display these poems with html and css3. But in the meantime this code works for the contemplation of simple Japanese poems on a screen.

I had to write an extra utility, character->string and then kept acclimating myself to naming conventions with string-separate. It was while working on these poems that I saw the similarities among the empty list '() and (blank 0) along with cons and vc-append . There never seems to be a need for iteration loops once you get used to recursive procedures, aux or helper functions, and accumulator or keep expressions. Maybe I can use this approach as part of a Ogden's Basic English-style approach to a Basic Scheme (or Basic Racket) that gives humanities students the most widely useful expressions for programming tasks on computers.

Read more...