This is topic I hate my C++ teacher! I only got 21/20 :sad smilee: in forum Books, Films, Food and Culture at Hatrack River Forum.


To visit this topic, use this URL:
http://www.hatrack.com/ubb/main/ultimatebb.php?ubb=get_topic;f=2;t=046122

Posted by Blayne Bradley (Member # 8565) on :
 
Argh! So its like this I spend a solid WEEK working on my C++ homework, he spend 2 weeks correcting it and in class, he doesnt hand them out right away he tells us he has finished correcting thema nd then WAITS the entire 1.5 hour class before handing us the papers and instead of organizing and handing out the tests in aphlabetical order he hands them out at RANDOM aaargh! I wait 15 minutes before I get my paper and despite beign the first student with a B beginning my last name, its like a frakin' suspence film.

And to top it all off he gives me a 21/20 rather then the 25 I know I deserbed. [Mad] apparently my comments were too wordy, c'mon anyone who knows programing well enough to be reading my code doesnt need to know what a line does only a description of what the function is supposed to do inside it.

Blah!
 
Posted by Nighthawk (Member # 4176) on :
 
Comments too WORDY? That's a new one to me... He's lucky to have comments at all in the real world.

I really hated that part of classes I take. I'd have to comment everything, even the dumbest things. Thinks like...

int A = B + C; // Add "B" and "C" to get "A".

The current program I'm working on has 100,000+ lines of code I've written without a single comment, so I'm not much of a role model here.
 
Posted by Blayne Bradley (Member # 8565) on :
 
Okay the teacher says not to comment obvious things, and regarding an earlier comment by KoM what I do now is assume the person reading/debugging my code is competant and simply describe that I am trying to do rather then fidget on every line with a comment, so i end up commenting an ID block above my function doing so example.
code:
/*****************************************
. Conversion .
This function will do the convert Infex to Postfix
notation by using the pop and push stack functions
to push and pop Operands and Operators etc etc.
*****************************************/

I ALMOST got -4 off for compiler errors which turned out was because he was correcting on Studio 6.0 not 2k5 like normal people. So they had diffeent librarys and my code would blow up on it.
 
Posted by Xavier (Member # 405) on :
 
quote:
I ALMOST got -4 off for compiler errors
I was a TA for a semester, and had the unenviable task of grading java programs.

It sucked. I mean really sucked. I wasn't able to be very consistent either, even with a guide. I realized at the end that I wasn't taking points off for things which I was taking off at the beginning for, and vise versa. Considering it took me like three days to grade 150+ programs, I wasn't about to go back through and regrade them.

I very much expected to get strung up by angry students, but if any complained, it didn't get back to me.

The reason I quoted this sentence is that one imperative that the teacher gave was that if the program didn't compile, it was an automatic 0% score.

It was painful to give, especially when I could read the program and see that it had been written well. I had one program which was written extremely well, but the student must have tried to change something small at the last minute, because it no longer compiled.

I hated grading programs. It truly sucks.
 
Posted by Icarus (Member # 3162) on :
 
I hate it when students hate me because they're unhappy with their grade, as if that were something I did to them. [Frown]

quote:
Originally posted by Blayne Bradley:
Argh! So its like this I spend a solid WEEK working on my C++ homework, he spend 2 weeks correcting it and in class, he doesnt hand them out right away he tells us he has finished correcting thema nd then WAITS the entire 1.5 hour class before handing us the papers and instead of organizing and handing out the tests in aphlabetical order he hands them out at RANDOM aaargh! I wait 15 minutes before I get my paper and despite beign the first student with a B beginning my last name, its like a frakin' suspence film.

I don't see anything wrong with any of this. I hand papers back in random order myself.

quote:
And to top it all off he gives me a 21/20 rather then the 25 I know I deserbed. apparently my comments were too wordy, c'mon anyone who knows programing well enough to be reading my code doesnt need to know what a line does only a description of what the function is supposed to do inside it.
This seems self-contradictory to me. It sounds like you're saying your professor didn't think your comments were wordy enough.
 
Posted by Icarus (Member # 3162) on :
 
Am I correct in understanding that the maximum grade on this assignment was equivalent to 125%? Wow. I don't think much of your teacher either, then.
 
Posted by rivka (Member # 4859) on :
 
quote:
Originally posted by Icarus:
I don't see anything wrong with any of this. I hand papers back in random order myself.

I had one teacher who handed 'em back in reverse alphabetical order. Why should the A's and B's always be first?
 
Posted by pfresh85 (Member # 8085) on :
 
I prefer random order passing back myself, since it gives anyone the chance to be first. Of course that may be because my last name is in the middle of the alphabet and so in either alphabetical or reverse alphabetical I'm still in the same spot.
 
Posted by TheHumanTarget (Member # 7129) on :
 
It doesn't matter how you hand out the papers, or what grades you give your students, because, ineveitably, one of them will always find a reason to begin whining, and then vent their vitriol onto a message-board somewhere...
 
Posted by ricree101 (Member # 7749) on :
 
quote:
Originally posted by Xavier:

The reason I quoted this sentence is that one imperative that the teacher gave was that if the program didn't compile, it was an automatic 0% score.

It was painful to give, especially when I could read the program and see that it had been written well. I had one program which was written extremely well, but the student must have tried to change something small at the last minute, because it no longer compiled.

In most of the programming classes that I've ever taken, 0% for compiler errors has been the policy. The big difference between these classes and Blayne's, as far as I can tell, is that in my classes it was always very clear what compiler would be used. We also had ssh access to the machines that would be used to compile, so if there was a compiler error it was clearly our fault.

In my mind, this is an absolute necessity if you are going to be marking off heavily for compiler errors. Different compilers have their own quirks, so if it doesn't work because of a small difference, it seems a shame to take off that much for.


That said, if the project was seriously out of 125% and you still got over 100%, there doesn't seem to be that much to complain about.
 
Posted by Alcon (Member # 6645) on :
 
quote:
That said, if the project was seriously out of 125% and you still got over 100%, there doesn't seem to be that much to complain about.
I was waiting for someone to mention that. You got 105%, what are you complaining about?
 
Posted by just_me (Member # 3302) on :
 
quote:
Originally posted by Icarus:
Am I correct in understanding that the maximum grade on this assignment was equivalent to 125%? Wow. I don't think much of your teacher either, then.

I couldn't agree more... I HATE the concept of grading on some artificially inflated scale.

As far as I'm concerend this just means that he really got 21/25, or 84%.
 
Posted by Blayne Bradley (Member # 8565) on :
 
....... errrrm did no one realize that I was speaking partially in jest? Like I was being you know humurous, like Oh! I only got X percent! Kind of thing?
 
Posted by Steev (Member # 6805) on :
 
Wait, I'm still hung up on the "Comments too WORDY" issue.

I've written millions of lines of code and I can tell you that comments can't be too wordy. Sure they can be pointless but never too wordy. However, my code tends to annoy people in other ways as I write code like this:
(complete with spelling mistakes and everything.)

code:
// Once the Antenna View Period has been found
// and added to the output data streem it is
// no longer needed and discared from the set.
while( m_bIsAllEmpty == false )
{
pFacility = GetFacilityWithActiveAntenna(m_sFDFName);
if(pFacility != NULL)
{
pFacility->RemoveAntenna();
if( pFacility->Empty() == true )
{
m_bIsAllEmpty = true;
}
}
else
{
m_bIsAllEmpty = true;
}
}




 
Posted by ricree101 (Member # 7749) on :
 
quote:
Originally posted by Blayne Bradley:
....... errrrm did no one realize that I was speaking partially in jest? Like I was being you know humurous, like Oh! I only got X percent! Kind of thing?

Honestly, no, that didn't really come across for me at all. You might want to be more careful about that in the future. Let's face it, subtlety can be hard to express over a forum post.
 
Posted by King of Men (Member # 6684) on :
 
Death to Steev! One True Brace Style for the win!
 
Posted by Steev (Member # 6805) on :
 
HA HA HA!!!
 
Posted by TomDavidson (Member # 124) on :
 
quote:

The current program I'm working on has 100,000+ lines of code I've written without a single comment, so I'm not much of a role model here.

I'd say that there's a special Hell for people like you, but you already live in Florida.
 
Posted by Swampjedi (Member # 7374) on :
 
Tom, couldn't agree more.

I'm working on maintaining and porting 100k+ lines of Fortran and Ada that are "sparsely" commented. I've found comments like "Don't know why this works, but if we remove it it breaks".
 
Posted by Tstorm (Member # 1871) on :
 
My comments in code tend to vary. Sometimes I comment what the function does, sometimes I comment on how it works.

Note to anyone who didn't catch the brace style comment by KOM: Wikipedia article on code indent styles I'd call myself as a BSD/Allman style coder.
 
Posted by The Rabbit (Member # 671) on :
 
quote:

The current program I'm working on has 100,000+ lines of code I've written without a single comment, so I'm not much of a role model here.

If you are the only one who ever has to look at this code, that's one thing. But if any other human ever has too work with your 100,000+ lines of uncommented code, there is no punishment which could fit the magnitude of your crime.
 
Posted by TomDavidson (Member # 124) on :
 
Unless it's another spam engine, in which case he's doing the world a favor. [Wink]
 
Posted by The Rabbit (Member # 671) on :
 
quote:
Originally posted by TomDavidson:
Unless it's another spam engine, in which case he's doing the world a favor. [Wink]

But isn't writing another spam engine in and of itself a crime comparable to serial killing? Could failing to properly comment such a code possibly compensate for writing it in the first place?
 
Posted by TomDavidson (Member # 124) on :
 
I'm going to stare innocently up at the ceiling at this point.
 
Posted by Blayne Bradley (Member # 8565) on :
 
ROFL. >_>
 
Posted by Nighthawk (Member # 4176) on :
 
Oh don't start with the "spam engine" crap again... [Wink]

Maybe I think too highly of the code I write. I'm from the school of thought that if code is properly written, legible, clean, uses proper object names, and is separated in to appropriate class files contained in a directory tree, it should be self-explanatory. And if you're not savvy enough in programming to be able to figure how things work based on the code and structures provided, you probably have no business being in that code to begin with.

But, again, that's probably me thinking too highly of it.

*EDIT* And people that do things like "... == true" and especially "... == false" drive me crazy. [Wall Bash]
 
Posted by Icarus (Member # 3162) on :
 
I'm pretty much "One True Brace" style myself, though I'd never heard it called that. But then, I actually learned C from The C Programming Language, so I guess it makes sense.

My indentation gets all screwed up in markup languages, since the text is not commands, and when I write paragraphs I don't really look at the screen, so I'm not inclined to artificially insert line breaks and indentations into a whole big block of text. So if it's something I mess around with a lot, it's liable to get really ugly by the end.

I never was as good about commenting as I ought to have been, but I would at least make an effort.
 
Posted by TomDavidson (Member # 124) on :
 
quote:
And if you're not savvy enough in programming to be able to figure how things work based on the code and structures provided, you probably have no business being in that code to begin with.
Clear code = can be eventually deciphered
Clear code + comments = can be deciphered more quickly
 


Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2