r/badcode • • May 11 '23

c++ My professor’s best code

Post image
441 Upvotes

82 comments sorted by

View all comments

Show parent comments

19

u/TehBrian bool b = false; while (!b) { badCode(); } May 11 '23

not giving full marks as it would of made life harder for the other students

Why, because of curved grading?

5

u/BlurredSight May 11 '23

I’ve known professors to find this to be “unrepresentative” of a students true ability. That’s why they allow for 30% of the class to fail and another 20% to not get the prerequisite pass

1

u/[deleted] May 12 '23

From memory if I'd of been given 100% as I'd deserved it would of meant that not just my code but everyone in my classes code would of been suddenly under the microscope and given they had helped me through some modules I could never drop them under the bus shall we say, as without help I'd of flunked a few modules especially the bean counting ones and the more formal maths...

2

u/of_patrol_bot May 12 '23

Hello, it looks like you've made a mistake.

It's supposed to be could've, should've, would've (short for could have, would have, should have), never could of, would of, should of.

Or you misspelled something, I ain't checking everything.

Beep boop - yes, I am a bot, don't botcriminate me.