Friday, April 24, 2009

Final Grades

Here are the final grades, sorted by the last 4 digits of your NUID. Good luck to you all!

--Prof. Wand


NUID Letter Grade
2404 B
3133 F
4271 B
5035 B
6981 B
7389 B
8906 A
8954 B
9999 A

Thursday, April 16, 2009

Extra Credit

Since the lab PCs have only the latest DrScheme version installed, v1.4.5, please update your code so that it works with the newer version.

The only two different points in the interface are:
-- the register function is now split in two functions(register and name)
-- all the world keywords start now with iworld. For example world1 is now iworld1.


Sorry for the last minute change.

Final Codewalk

Hi everyone,

The final codewalk is next Thursday. This time, the codewalk will be public. You are all invited to watch your fellow students' presentations. We will meet at WVH212 at 17:00.

.Christos

Problem Set 11 codewalk's stats

full grade:120, max grade: 110, min grade: 90, avg grade: 104.4, mean grade: 107.5

Thursday, April 9, 2009

Problem Set 10 codewalks stats

full grade:80, max grade:75, min grade:68, avg grade: 71.25, mean grade: 71

Wednesday, April 8, 2009

Change of room for the last 2 codewalks

Hi guys,

I have reserved WVH 212 (one of the on the second floor) for the last two codewalks. We are moving to the lab so that we can try out the distributed applications.


.Christos

Tuesday, April 7, 2009

Readings for Lecture 12

For next week, please review the material on generative recursion, both in the book and from lecture, and read the pdf document in the examples repository, Lecture12/invariants.pdf .

--Prof. Wand

Monday, April 6, 2009

Problem Set 11 and DrScheme

Please, use DrScheme v4.1.4 for problem set 11.

Finger Exercise for Problem Set 11

Extend the chess clocks server with a reset procedure. When the operator of the server presses ''k'' , the server asks all the clocks to stop and reset their internal counter.

Friday, April 3, 2009

Course Evaluations

I've been asked to communicate the following information to you. I've customized it somewhat.

--Prof. Wand

1. It's time for you to participate in on-line course evaluations. This program is called TRACE. This stands for something, but I don't know what :-) The University really likes to collect this data. We will also have in-class course evaluations on 4/13. At that time we will have forms from the College and from me personally.

2. Your assessments through TRACE are completely anonymous, as are the in-class evaluations.

3. Your assessments and comments will be available to the NU student community to assist future course selections.

4. Your assessments and comments are important data in evaluations of faculty performance.

5. Given the public nature of the comments and their intended use to enhance teaching, please be thoughtful and appropriate in crafting your input.

6. The TRACE evaluation period begins on Monday April 6. You can complete your assessments through Monday, April 27.

7. You access TRACE through your MyNEU portal. Please evaluate my course and all your other courses. For your convenience, you can save your work on the evaluations and you can submit course evaluations separately. However, you cannot change an evaluation once it is submitted. If your courses are not listed correctly, please email TRACE@neu.edu.

Students will have from Monday, April 6 through Monday, April 27 at 11:50 p.m. to complete their survey.

Please e-mail trace@neu.edu for questions regarding TRACE. You should be receiving an individual email
announcing that the evaluation is open and describing how evaluations are used.

Your participation is appreciated.


Thursday, April 2, 2009

Problem 9 codewalks stats

full grade: 40, max grade: 37, min grade: 34, avg grade: 35.5, mean grade: 35.5

Readings for Monday 4/6

For Monday 4/6, please read HtDC Chapters 30-31, and the material in the DrScheme Help Desk on the universe.ss Teachpack.

From the Help Desk, go to Teachpacks (this usually appears as the fifth item under "Languages") >> HtDP/ 2e Teachpacks >> 3.1 Worlds and the Universe

On my installation this resolves to:

file:///C:/Program%20Files/PLT/doc/teachpack/Worlds_and_the_Universe.html

Your installation may be different, of course.

Also, we will have a final lecture on Monday 4/13.

--Prof. Wand

Tuesday, March 31, 2009

Problem Set 10 is now available; other things

Homework 10 is now on the web site.

Also, I've committed the example files from last night's lecture to the example repository.

Last, if you are looking for a tool to make nicer class diagrams, you might want to check out UMLet. It can run either as a standalone application or as an Eclipse plug-in. I played with the standalone version for about 5 minutes and it seems ok. Kindly note that the handwritten class diagrams are fine, and I don't want you to waste a lot of time making them prettier. But if you feel the lack of a tool, here's one to check out. Thanks to Denis and Chander for the tip.

--Prof. Wand

Thursday, March 26, 2009

Problem set 8 codewalks stats

full grade: 90, max grade: 80, min grade:70, avg grade:74, mean grade: 73

Tuesday, March 24, 2009

Problem Set 9 is now available

...in the usual place.

--Prof. Wand

Thursday, March 19, 2009

Problem set 7 codewalks stats

full grade:70, max grade:70, min grade:56, avg grade:65.5, mean grade:67

Wednesday, March 18, 2009

Readings for Monday 3/23

For Monday's lecture, please read Part IV (Chapters 23-28). This is complicated stuff, so it may take us more than one lecture to cover it, but you should read as much of it as you can for Monday.

--Prof. Wand

Sunday, March 15, 2009

Readings for Monday

We covered parts I and II of HtDC last week, so you should read Part III and Intermezzo 3 for this week's lecture.

--Prof. Wand

Thursday, March 12, 2009

Problem set 6 codewalks stats

full grade: 64, max grade : 52, min grade: 37, avg grade: 44.25, median grade: 44

Tuesday, March 10, 2009

Updates to Lecture 7 examples

There were a few points that I missed during last night's lecture:

1. Every method has an implicit argument called this . This is the argument on which the method "works" and corresponds to the argument on which we are using the structure strategy. Recall how I wrote

(define (foo this)
(cond
[(empty? this) ...]
...))

Your purpose statement will almost always contain the word "this". That's a clue!

2. When you reference a field foo of an object, you should always say this.foo, not just foo. This is enforced in ProfessorJ/Beginner, but not in ProfessorJ/Intermediate. My examples violated this rule. So I should have said things like:

boolean test1 = check this.book1.listing() expect "Mitch: EOPL";

rather than

boolean test1 = check book1.listing() expect "Mitch: EOPL";


3. I was not happy with the method availableHelper :

boolean availableHelper (String title, int quantity) {
// is this book available in this quantity?
return ((this.ncopies >= quantity) && this.title.equals(title));
}

because (a) it violates the rule of 1-task/1-function and (b) it seems awfully artificial: it's not an obvious method for Book.

Here's a better solution: add to Book two methods

boolean titleEquals(String s) {
// does the title of this book equal s?
return this.title.equals(s);
}

boolean ncopiesGreaterThan(int n) {
// are at least n copies of this book on hand?
return this.ncopies >= n;
}

and in NeLOB redefine availableTitle to:


boolean availableTitle(String title, int n) {
// ... this.first ... this.rest.availableTitle(title, n) ...
if (this.first.titleEquals(title) && this.first.ncopiesGreaterThan(n))
{return true;}
else
{return this.rest.availableTitle(title,n);}
}


[Finger exercise: Modify the method so that if the title is found, but there aren't enough copies, the method returns false immediately, rather than recurring through the rest of the list.]

Anyhow, both these changes are in book2.java, now in the examples/Lecture 7 repository.

--Prof. Wand