61

Today I got my programming test back. 50/50 points. I only deserved 40 of them, since I wrote horrible code, so I told the teacher "I don't understand my points." His reply: "I also don't understand." I was laughing for at least 5 minutes 😂

Comments
  • 4
    I remember my test. I had to explain my teacher the code for 30 fucking minutes. 30. After school. I almost missed the bus... Till today I hate him.
  • 1
    Teacher commited to the grades repository and didn't know how to backout once he realized his error? XDD
  • 2
    (To what is horrible code:
    for (int i = 0; i < length - 1; i++)
    {
    Console.WriteLine(nums[i]);
    }
    Console.WriteLine(nums[length - 1]);

    It's just horrible and I have no idea why I did that.)
  • 2
    @filthyranter what is that? :O
  • 2
    @VomBa it looks like (s)he is trying to output an array using the array length-1 (for some reason) as the end constraint of the loop and then outputting the last element after the loop ends.
    Definitely ugly
  • 2
    @core it also hurts...
  • 2
    @core I'm definitely a he ^^
  • 2
    @core Also, the reason why I didn't use the last index is because the "stop value" which we had to use (I know better ways to end a program...) was also stored in there.
Add Comment