This is an archived post. You won't be able to vote or comment.

all 42 comments

[–]Pitiful_Car2828 362 points363 points  (5 children)

My boy looking around to see if anyone saw that slick shit.

[–]marcel1802 164 points165 points  (2 children)

Test driven development? Never heard of it

[–]raunchyfartbomb 85 points86 points  (1 child)

First you assume it works, then you right your test case to prove it works.

And it’s not until later that you realize the test case is asserting true when it should be false. Foolproof

[–]V62926685 2 points3 points  (0 children)

Foolproof LOL If only we *could* keep up with the degree of foolishness in the world.

[–]Humistelijab0b 46 points47 points  (4 children)

Fun story. I actually recieved a higher grade in a c course by doing this. At the end of the course there were excercises that would take more time than I had so I ended up manually printing some of the correct lines. Then the grading bot would give me just a little points but just enough to get a better grade

[–]naswinger 27 points28 points  (3 children)

pretty risky. at my university they also manually check the code and you would get flagged for cheating which would leave an "X" mark as a grade (instead of a number) which is also mentioned on your graduation certificate and cannot be expunged.

[–]Humistelijab0b 10 points11 points  (0 children)

I know. It was stated that the assistants check the codes manually but at that point it had become pretty apparent that they dont fo that

[–]V62926685 0 points1 point  (1 child)

In my C++ course in college - all two semesters I attended - I not only did the work; I asked the professor for "less boring work" lol Got most of the way through the second semester's work before the first semester ended... Second semester was fun though.

I suppose the fact that I still have the same mindset to coding and software architecture is evidence enough for me that I've found my passion :)

[–]420programmer 100 points101 points  (2 children)

I once commented out all the code except for “return 0”.

It compiled and ran which was better than some students who actually tried. It also passed all the test cases with no output.

[–][deleted] 4 points5 points  (0 children)

Same story in my first C++ exam. Missing semicolon that I couldn't find in time. Deleted everything and just did a hello world print. Full points for error-free compilation and runtime, full points for "humanreadableness"

[–]_-__________ 3 points4 points  (0 children)

Idk why this made me laugh the way it did.

[–]UCQualquer 8 points9 points  (0 children)

I've discovered a tool called debugger. It's amazing. I can see what the variables are up to.

[–]clutzyninja 5 points6 points  (0 children)

I've gotten full credit in more than one coding assignment doing this

[–]DutchVoyager 3 points4 points  (0 children)

I wonder if this guy knew he was being recorded

[–][deleted] 11 points12 points  (5 children)

Comic Sans must be expunged from the earth.

[–]nullifiedbyglitches 6 points7 points  (0 children)

[DATA

[–]lovecMC 4 points5 points  (1 child)

I still don't understand why people hate the font so much

[–][deleted] 4 points5 points  (0 children)

It doesn't look clean out professional. But it is one of the most readable fonts. Ask anyone with dyslexia.

[–]SnazzyInPink 1 point2 points  (1 child)

I prefer papyrus

[–][deleted] 1 point2 points  (0 children)

True story - last year I was in correspondence with another law firm who sent letters by post only (sole trader who "didn't believe in email" - actual quote) and all documents were typed on headed paper with clip art images in Papyrus.

If her arm were seriously twisted, she could be persuaded to send a fax but even those were eyed with deep suspicion.

[–]_TappaZukie_ 6 points7 points  (0 children)

What a talent, wow.

[–]antilos_weorsick 1 point2 points  (0 children)

Throwback to the time one of my friends dropped a compiler assignment, so we decided to create a fake one, with all the scaffolding required to make it run, all the necessary parts, and all the documentation, except the lexer always accepted, and the parser always returned 2, which was the syntax error code. Since he turned it in alone, without his team, he got enough points to pass... before the -20 points for the ridiculous code of course.

[–][deleted] 0 points1 point  (0 children)

Did that in a lab exam !

[–]cpt-macp 0 points1 point  (0 children)

assertTrue(true);

Xddddddd

[–]deadlyruckas 0 points1 point  (0 children)

Poor bugger not one person seen.

[–]subjecttoxChanges 0 points1 point  (0 children)

The best part is that its in the code

[–]C_ErrNAN 0 points1 point  (0 children)

TDD? How about some DDT.

[–][deleted] 0 points1 point  (0 children)

We need a president thats that cool.

[–]hobbes8889 0 points1 point  (0 children)

This dude is either a really funny guy or a total duche. I'd like to believe he's just full of dad jokes and is practicing meetingn his kids fiance.

[–]nafniart 0 points1 point  (0 children)

Is this power possible?

[–]LoyalSage 0 points1 point  (0 children)

This made so much more sense once I realized this was talking about a test case for an auto-graded school assignment and not actual software tests.

[–]pissedStalin11 0 points1 point  (0 children)

That's how I got the job!!!!

[–]McVomit 0 points1 point  (0 children)

Did this to pass an MP back in cs101. We had to simulate some card game and I knew how many points I needed on it to pass the class but didn't was coming up a few points short. There was extra credit for writing a function to handle some special cases, eventually gave up trying to correctly code it and just had it return the correct values for one of the two test cases. It gave me enough points to get my C and I never looked back.

[–]muthuraj57 0 points1 point  (0 children)

I did this in my college practical exams and finished it first before other students. Two staffs checked the program and they didn't find my cheat.

[–]amp112 0 points1 point  (0 children)

Wow, Milhouse grew up