Sunday 31 March 2013

Revisiting Structs

We learned about structs in class awhile back, but recently we had to work with structs in fractal.rkt code. When defining the function of sierpinski I based my definition off the check-expect that was already given in the starter code. It took me awhile and a little frustration until I realized that the struct required me to specify the param-depth and param-base of the function using the placeholder rp.

Saturday 16 March 2013

Double Checking

After the test, I had to go to my computer and make sure that the definition "rs" did what I thought it did. Hopefully it actually does reverse the string of characters like I initially assumed.

Thursday 31 January 2013

Rotation Rhetoric

While working with big-bang and on-tick rotate commands an error appeared saying rotate: expects 2 arguments, but found only 1. After some thought, I came to the conclusion that the program expected me to specify whether I wanted to rotate the image clockwise or counterclockwise. Doesn't the program naturally rotate an image counterclockwise and is this an exception?

Saturday 19 January 2013

Racket code Ramble

Today, while playing around with the image commands in DrRacket, i noticed that the rotate command rotates an image in degrees counter-clockwise. I wonder how that was decided. Maybe the developers flipped a coin...

Friday 18 January 2013

New Computers: Good and bad for school....

Recently, I bought a new computer equipped with windows 8. Having too much fun playing around with it, I forgot that i no longer had microsoft word when i decided to finally do some homework. Fun, fun, fun.