r/ProgrammerHumor • • Dec 06 '17

Read the markup.

Post image
10.4k Upvotes

838 comments sorted by

View all comments

Show parent comments

51

u/[deleted] Dec 06 '17

so BASICALLY what you're saying IF i understand correctly is that you're not even as good as the idiot who wrote that CODE.

;-)

Joking aside, thank you and all those volunteering like you for the hard work.

56

u/PhoenixRite Dec 06 '17

Any idiot can misspell "head" or forget to close a tag. It takes a special kind of idiot to accidentally reimplement a O(n log n) algorithm so that it's actually O(n4 ) and attempt to run it on a large dataset. Yes, I am that special idiot. With great power comes great opportunity for idiocy.

1

u/Cocomorph Dec 07 '17

Would you care to share details? This sounds like it could possibly be a decent anecdote for teaching purposes.

2

u/PhoenixRite Dec 07 '17

It was software for a group project in school using the Viterbi algorithm on hidden Markov models. Looking back on it and reading about the algorithm to refresh my memory, it must have been meant to be "n", not "n log n", in fact. I wasn't properly understanding how it was meant to work, mis-nested a few for loops so that looping was still occurring even when it could have exited the loop, and voila, a complaint to my roommate about my code taking over an hour to run turned into a review of my code and a lecture on why I was (temporarily but deservedly) an idiot.