FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » I hate my C++ teacher! I only got 21/20 :sad smilee:

   
Author Topic: I hate my C++ teacher! I only got 21/20 :sad smilee:
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
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!

IP: Logged | Report this post to a Moderator
Nighthawk
Member
Member # 4176

 - posted      Profile for Nighthawk   Email Nighthawk         Edit/Delete Post 
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.

Posts: 3486 | Registered: Sep 2002  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
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.
IP: Logged | Report this post to a Moderator
Xavier
Member
Member # 405

 - posted      Profile for Xavier   Email Xavier         Edit/Delete Post 
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.

Posts: 5656 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Icarus
Member
Member # 3162

 - posted      Profile for Icarus   Email Icarus         Edit/Delete Post 
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.
Posts: 13680 | Registered: Mar 2002  |  IP: Logged | Report this post to a Moderator
Icarus
Member
Member # 3162

 - posted      Profile for Icarus   Email Icarus         Edit/Delete Post 
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.
Posts: 13680 | Registered: Mar 2002  |  IP: Logged | Report this post to a Moderator
rivka
Member
Member # 4859

 - posted      Profile for rivka   Email rivka         Edit/Delete Post 
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?
Posts: 32919 | Registered: Mar 2003  |  IP: Logged | Report this post to a Moderator
pfresh85
Member
Member # 8085

 - posted      Profile for pfresh85   Email pfresh85         Edit/Delete Post 
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.
Posts: 1960 | Registered: May 2005  |  IP: Logged | Report this post to a Moderator
TheHumanTarget
Member
Member # 7129

 - posted      Profile for TheHumanTarget           Edit/Delete Post 
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...
Posts: 1480 | Registered: Dec 2004  |  IP: Logged | Report this post to a Moderator
ricree101
Member
Member # 7749

 - posted      Profile for ricree101   Email ricree101         Edit/Delete Post 
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.

Posts: 2437 | Registered: Apr 2005  |  IP: Logged | Report this post to a Moderator
Alcon
Member
Member # 6645

 - posted      Profile for Alcon   Email Alcon         Edit/Delete Post 
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?
Posts: 3295 | Registered: Jun 2004  |  IP: Logged | Report this post to a Moderator
just_me
Member
Member # 3302

 - posted      Profile for just_me           Edit/Delete Post 
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%.

Posts: 409 | Registered: Apr 2002  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
....... 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?
IP: Logged | Report this post to a Moderator
Steev
Member
Member # 6805

 - posted      Profile for Steev           Edit/Delete Post 
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;
}
}




Posts: 527 | Registered: Aug 2004  |  IP: Logged | Report this post to a Moderator
ricree101
Member
Member # 7749

 - posted      Profile for ricree101   Email ricree101         Edit/Delete Post 
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.
Posts: 2437 | Registered: Apr 2005  |  IP: Logged | Report this post to a Moderator
King of Men
Member
Member # 6684

 - posted      Profile for King of Men   Email King of Men         Edit/Delete Post 
Death to Steev! One True Brace Style for the win!
Posts: 10645 | Registered: Jul 2004  |  IP: Logged | Report this post to a Moderator
Steev
Member
Member # 6805

 - posted      Profile for Steev           Edit/Delete Post 
HA HA HA!!!
Posts: 527 | Registered: Aug 2004  |  IP: Logged | Report this post to a Moderator
TomDavidson
Member
Member # 124

 - posted      Profile for TomDavidson   Email TomDavidson         Edit/Delete Post 
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.
Posts: 37449 | Registered: May 1999  |  IP: Logged | Report this post to a Moderator
Swampjedi
Member
Member # 7374

 - posted      Profile for Swampjedi   Email Swampjedi         Edit/Delete Post 
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".

Posts: 1069 | Registered: Feb 2005  |  IP: Logged | Report this post to a Moderator
Tstorm
Member
Member # 1871

 - posted      Profile for Tstorm   Email Tstorm         Edit/Delete Post 
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.

Posts: 1813 | Registered: Apr 2001  |  IP: Logged | Report this post to a Moderator
The Rabbit
Member
Member # 671

 - posted      Profile for The Rabbit   Email The Rabbit         Edit/Delete Post 
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.
Posts: 12591 | Registered: Jan 2000  |  IP: Logged | Report this post to a Moderator
TomDavidson
Member
Member # 124

 - posted      Profile for TomDavidson   Email TomDavidson         Edit/Delete Post 
Unless it's another spam engine, in which case he's doing the world a favor. [Wink]
Posts: 37449 | Registered: May 1999  |  IP: Logged | Report this post to a Moderator
The Rabbit
Member
Member # 671

 - posted      Profile for The Rabbit   Email The Rabbit         Edit/Delete Post 
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?
Posts: 12591 | Registered: Jan 2000  |  IP: Logged | Report this post to a Moderator
TomDavidson
Member
Member # 124

 - posted      Profile for TomDavidson   Email TomDavidson         Edit/Delete Post 
I'm going to stare innocently up at the ceiling at this point.
Posts: 37449 | Registered: May 1999  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
ROFL. >_>
IP: Logged | Report this post to a Moderator
Nighthawk
Member
Member # 4176

 - posted      Profile for Nighthawk   Email Nighthawk         Edit/Delete Post 
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]

Posts: 3486 | Registered: Sep 2002  |  IP: Logged | Report this post to a Moderator
Icarus
Member
Member # 3162

 - posted      Profile for Icarus   Email Icarus         Edit/Delete Post 
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.

Posts: 13680 | Registered: Mar 2002  |  IP: Logged | Report this post to a Moderator
TomDavidson
Member
Member # 124

 - posted      Profile for TomDavidson   Email TomDavidson         Edit/Delete Post 
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

Posts: 37449 | Registered: May 1999  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

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