
Originally Posted by
jrandom
Don't be silly; you and xerxesdaphat came up with the same correct solution.
I knew I started this thread for a reason. Admittedly it never occurred to me that at an interview I can just write a couple of lines of pseudocode instead of tediously chasing all the pointers and making sure that the counters are not off by one or that I haven't forgot to declare a loop counter (my favorite pen-and-paper based coding bug). Thanks for the tip!

Originally Posted by
jrandom
Ever sat in front of a computer running bespoke software of some sort and watched a display inexplicably crawl across the screen for no obvious reason, instead of doing stuff quickly?
On the other hand I've seen programs crashing in the production environment after a programmer has decided that an infrastructure class is not fancy enough and implemented some kind of ultra-fast search algorithm without realizing that if a user hits cancel at exactly the right time, the algorithm will be asked to search for an empty string, something that UtString.search() was perfectly capable of doing in a correct way. I've seen how the program suddenly prints (or worse, emails) a contract requiring a customer to pay by February 30th, because the programmer thought he knows better (or just was not aware that he needs to call UtDate.addMonth()).
"People are stupid ... almost anyone will believe almost anything. Because people are stupid, they will believe a lie because they want to believe it's true, or because they are afraid it might be true. People's heads are full of knowledge, facts, and beliefs, and most of it is false, yet they think it all true ... they can only rarely tell the difference between a lie and the truth, and yet they are confident they can, and so all are easier to fool." -- Wizard's First Rule
Bookmarks