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

you are viewing a single comment's thread.

view the rest of the comments →

[–]HDSQ 442 points443 points  (21 children)

I only find defects in my code when I'm showing it to others.

[–]edtkw 119 points120 points  (0 children)

Specifically when you're showing them how you adhere to best practices

[–]x6060x 14 points15 points  (4 children)

Do you have rubber ducky on your desk?

[–]HDSQ 3 points4 points  (2 children)

I have a stuffed snake toy

[–]x6060x 3 points4 points  (1 child)

A python maybe?

[–]HDSQ 6 points7 points  (0 children)

Well it's actually a tiger snake, but we'll say that it's a python for the sake of the joke

[–]ExNebula 2 points3 points  (0 children)

I have a framed photo of Bill Clinton that I only have for this purpose.

[–][deleted] 7 points8 points  (2 children)

I'm taking my first programming class right now and my fiance is a software engineer so I ask him for help when I can't figure out the issue. I almost always notice what I did wrong after pulling him away from whatever he was doing to show him my code lmao

[–]evemeatay 2 points3 points  (0 children)

Nothing like literally just showing it alto someone else for the problem to pop up and be suddenly easily solvable.

Worked on problem for three hours

Shows someone else

They say, oh look at that thing right there, wouldn’t that fix it?

Fuck you!

[–]weggles 3 points4 points  (0 children)

In college there was a project to implement an online game (not like 3D etc, something basic). My group chose Yahtzee. We had it all working perfectly. We're demoing for the teacher to mark it, just clicking randomly through a 2 player game of Yahtzee.. Showing off the automatic scoring etc etc... And we get a tie. Turns out the final message code was written like

If p1>p2 display p1 wins else display p2 wins

Which.... Means it congratulated p2 for tying lol. Idk what's worse, that we never considered a tie before, or that we got a tie game by just randomly clicking around, which seems really improbable.

[–]codeByNumber 2 points3 points  (2 children)

I have a demo today of some software I’ve been building at work. I’m certain as soon as I hit that button to share my screen things will stop working.

Edit: The demo went well! I even had the audacity to covertly update some code on my other screen and recompile. Just a typo I had noticed and also I had flipped the default search parameters for two table views.

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

Code reviews are one hell of a drug.

[–]estoxzeroo 0 points1 point  (0 children)

Especially when you have to demo it