## First assignment marked

sewe
Sonntagsinformatiker
Beiträge: 295
Registriert: 16. Jan 2009 14:53
Kontaktdaten:

### First assignment marked

I just finished marking the first assignment and committed the awarded points (together with some short comments) to the SVN repository.

A couple of remarks are in order, though:
• Please follow our suggested directory structure: https://cage.st.informatik.tu-darmstadt ... rcise-date>/. It's not that hard; a simple svn cp public/exercises/<exercise-date> public/<team-id> should set everything up for you once a new assignment is published.
• In line with the above request, I took the liberty to move around the first assignment if it was in the wrong directory. Please do a svn update to make sure there are no conflicts further down the road (although you should have to modify the first exercise anymore).
• Also, please move the second assignment into the correct directory if you haven't done so already.
• There will be a points.txt file in the respective exercise's directory. Therein you can find the awarded points and a few comments of mine on why you did or did not get all the points.
• While the points.txt files are technically not write-protected, SVN is very good of keeping track of all attempts to cheat by awarding yourself some more points. So just don't do it!
I also noticed that quite many of you had trouble keeping their Scheme code straight in task 4 (the preprocessor for => and <=>). Oftentimes you forget a recursive call to preprocess amidst a forest of parenthesis and cons. So bear in mind that the following to are equivalent:

Code: Alles auswählen

(cons 1 (cons (+ 2 3) empty))
and

Code: Alles auswählen

(list 1 (+ 2 3))
As a rule of thumb: If you write more than a single cons when defining a list (of lists), there's almost certainly a more readable way to achieve the same thing. And if you want to get fancy, have a look at Quoting (http://docs.racket-lang.org/guide/quote.html) and Quasiquoting (http://docs.racket-lang.org/guide/qq.html)