- Feature Articles
-
CodeSOD
- Most Recent Articles
- My Identification
- Mr Number
- intint
- Empty Reasoning
- Zero Competence
- One Month
- A Little Extra Padding
- Ready Xor Not
-
Error'd
- Most Recent Articles
- Monkeys
- Killing Time
- Hypersensitive
- Infallabella
- Doubled Daniel
- It Figures
- Three Little Nyms
- Tangled Up In Blue
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Perhaps he also stored years as two digits...
I'm beginning to see a pattern here.
Admin
yes, that may have been the point of the joke, however the response here is what they probably got originally as well, assuming they were dealing with real techs. At least, almost all the people I know who have or are doing a CS degree would respond by nitpicking apart the whole question and then nitpicking away any objections to the original nitpicking. You want to ask a wiseass question like that, then expect the wiseass responses. In fact, fire anyone who doesn't come back with a wiseass response, they're either less competent or less confident than the ones that do.
Admin
Geeze. RUNPROG. What a piece of crap.
Here's another analogy that applies to RUNPROG, but at the company level.
"Problem: When I put my hand on the hot stove burner, it hurts. Sensible Solution: Take hand off burner. Company Solution: Continue applying hand to burner. Eventually, you'll get used to the burning pain, and you'll save precious milliseconds from not removing the hand."
Admin
One digit is enough. [0-9A-Z] will give you 36 years worth of offset, so why waste storage bytes?
Admin
SRSLY O RLY??? I hope that you are being sarcastic, but I think you are actually bragging about your keypad skills. That so, so sad.
Admin
i used to work on a print - manager, every month it badly printed about 3 or 4 documents, and i had to manualy repair them in DB, i was a lot easier then searching a bug in a giant stored procedure.
Admin
Not necessarily - my microwave has a button for "add one minute", and a button for 10 seconds. I can get 1:10 with two buttons - 1:11 takes me three.
Admin
Saving a few nanoseconds ?? So, the ancient supercomputer ran with a clock frequency in the GHz range?? Why don't we start talking about seconds and minutes.
Amazing that no one is defending the star programmer. Alex already wrote that RUNPROG, evil or not, was slowing programs down painfully. What if the programmer didn't think about optimizing at all? That would probably have made RUNPROG completely unuseable.
I'm appalled at Alex's scornful attitude about optimizing, and at the comments. I realize now that this apparently widespread attitude is what makes a lot of modern software so painfully slow. Coders don't give shit about writing efficient code.
I have crossed too many IT guys on my way who deep down felt that it was a good thing, that their PC had "something to do" and utilized its resources. Their train of thought was like "Just write the stuff in whatever way you can think of, wooow it uses 780 MB ram! suuuper nice!"
Eeeeeew. All coders should be forced to try and program stuff on a C64. Spoiled kids we are today.
Admin
There's writing efficient code, and then there's pointless optimizing to the point of dangerousness. Our star programmer failed to do the former, and did the latter.
Frankly, as far as I'm concerned, efficient code != optimizations.
Admin
Boring story
I didn't learn anything.
Admin
But the question wasn't "Which takes less effort?" it was "Which is faster?"
Admin
I know that on a PC it would probably not matter much, but on a microcontroller it could mean difference between getting the job done or not.
Admin
Admin
Admin
My favorite is the microwaves that require you to start by pressing "Cook" or something similar. Classic example of failure to optimize the UI for the common case.
Admin
2 things
typing 1:11 is faster than 1:10, and you can pull it out of the microwave at 1 second left - so it's faster
0x1FFFF flips to 0x20000, which is -0, which then increments to 0x20001, which is -1, then -2, then -3.
Admin
that was hilarious and amazing..
Admin
Admin
This strikes me as an amusing anecdote that management can spew to the engineers when the engineers bring up a real performance issue. I.E.:
Engineer: "We've got a real performance problem in the new version Barfoo 2007, it can take up to an hour to re-index the Bazfoo!"
Management, chuckling: "Oh my, let me tell you a little story about a microwave...."
(commenting on stale posts since 2K7)
Admin
Not on my microwave. It has buttons: 10 min, 1 min, 10 sec, 1 sec, so 1:10 is three buttons (1 min, 10 sec, start) and 1:11 is four button presses plus the extra second!
And my old microwave had an analogue dial so there wasn't any real difference between 1:10 and 1:11.
Admin
Not ones' complement: [url]http://en.wikipedia.org/wiki/Signed_number_representations#Ones.27_complement[url]
Admin
TRWTF is using a signed comparison for the access check. Surely this piss-poor optimizer would've known that an unsigned comparison would be faster.
Admin
There were no unsigned 18-bit instructions. This was a Seymour Cray computer where extra bits for parity and overflow just were not done.