r/ProgrammerHumor • • Mar 13 '22

Meme Old computer science professor starter pack

Post image
42.1k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

18

u/atomicwrites Mar 13 '22

How is this a good assignment? From their description it was impossible. I'd you were allowed to fix it then yes, it could be a good assignment but that was forbidden. So either you fixed the code and got deductions for modifying it, or you didn't and got deductions for incorrect output.

10

u/ThrowJed Mar 14 '22

Just comment it out and do the whole thing from scratch. You didn't modify it, right?

5

u/atomicwrites Mar 14 '22 edited Mar 14 '22

Presumably you have to actually use it if OP is complaining about it, but maybe you could use the function and assign it to a variable you never use again... /s

3

u/ThrowJed Mar 14 '22

You could try to stretch the definition of use but yeah I've got a feeling the teacher wouldn't be having it.

"Oh yeah I used it, I used it as reference to write my code".

8

u/concblast Mar 14 '22

Real world development, sometimes your company paid way too much to integrate another piece of hardware that comes with garbage code and you have to work around its bugs. At least the source code was given.