Programming mark woes <rant>
Posted: Tue Oct 15, 2002 7:39 am
I just got my first CP527 (Java Programming 2) assignment back.
I got 16½/20.
Now, for some of you, this may seem like a good mark. But not for me.
What I'm really annoyed about is that there was only 1 actual mistake in my coding. The rest of the marks were lost due to them not agreeing with the _way_ I coded.
For example. We had to empty out 2 vectors in the constructor of a class. I did it like this:
public Library()
{
books = new Vector(1);
borrowers = new Vector(1);
}
Which means, for those of you who don't know programming, I am creating new (and thus empty) Vectors and copying them over the top of the old ones. Thus accomplishing the task, to empty the Vectors.
However, I lost marks. All because they wanted me to do
public Library()
{
books.removeAllElements();
borrowers.removeAllElements();
}
What this does is nulls out all the objects in the Vector. It doesn't actually empty it (there are the same number of nulls as there were objects, whereas my way kicks it back down to one null) but the end result is the same, an empty Vector.
And I lost marks for this?!? When they didn't actually _say_ to use the function?!? (They said remove all the elements. They didn't say you had to do it in a certain way)
Another thing that I got downmarked for was not having default constructors in my classes (that's a constructor which doesn't take any parameters). Yay. I didn't actually have to _use_ them anywhere in the assignment, but I lose marks for not having them.
And there was more things like this.
If I don't go well on the second assignment, due to crap like this, I am going to be severely annoyed. At least I didn't go as bad as the lowest person in the class (they got 6½/20. Dunno who it was, though).
</rant>
While I'm on this topic, how about a programming section.
I got 16½/20.
Now, for some of you, this may seem like a good mark. But not for me.
What I'm really annoyed about is that there was only 1 actual mistake in my coding. The rest of the marks were lost due to them not agreeing with the _way_ I coded.
For example. We had to empty out 2 vectors in the constructor of a class. I did it like this:
public Library()
{
books = new Vector(1);
borrowers = new Vector(1);
}
Which means, for those of you who don't know programming, I am creating new (and thus empty) Vectors and copying them over the top of the old ones. Thus accomplishing the task, to empty the Vectors.
However, I lost marks. All because they wanted me to do
public Library()
{
books.removeAllElements();
borrowers.removeAllElements();
}
What this does is nulls out all the objects in the Vector. It doesn't actually empty it (there are the same number of nulls as there were objects, whereas my way kicks it back down to one null) but the end result is the same, an empty Vector.
And I lost marks for this?!? When they didn't actually _say_ to use the function?!? (They said remove all the elements. They didn't say you had to do it in a certain way)
Another thing that I got downmarked for was not having default constructors in my classes (that's a constructor which doesn't take any parameters). Yay. I didn't actually have to _use_ them anywhere in the assignment, but I lose marks for not having them.
And there was more things like this.
If I don't go well on the second assignment, due to crap like this, I am going to be severely annoyed. At least I didn't go as bad as the lowest person in the class (they got 6½/20. Dunno who it was, though).
</rant>
While I'm on this topic, how about a programming section.