- Feature Articles
- CodeSOD
- Error'd
- 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
Admin
But... a warning doesn't stop it from compiling...
Admin
Admin
And then you still have to worry about compiler bugs... and electrical glitches and bad solder joints, too.
"To view the definition of paren, activate your Merriam-Webster Unabridged Dictionary FREE TRIAL now!"An excellent definition, if I do say so myself.
Admin
"Do what I mean, not what I say!"
I often want to scream at PC software "Do what I say, not what you think I mean! Your programmer was an idiot"
Admin
Turns out Yoda was a Lisp programmer.
Admin
Admin
Sure it compiles. This is like indicating you want a cosine function, and the program (as written) returns a sine.
Then someone proposes unit tests, and only gives 45 degrees as the value point. Oh, well.
Of course, one could use the xkcd method of random numbers (as an example).
Admin
Can we get a doco for when it's OK to use parens and when we must use "parenth- (the full word)"?
Admin
Why... just tell them to write a program that uses printf() to print string variable, and pass it parameter without "&" before the variable name.
It compiles, but fails at run time. Easy to prove.
It shocks me to see a on-the-job programmer that don't understand the difference between compile time error and run time error.
Admin
Admin
No problem. Nowadays you can synthesize any sequence of DNA you want, as long as the base pairs match each other, the resulting DNA molecule is chemically stable and everything seems right. Now if you put this DNA in an egg cell, there is obviously no reason why it should not grow and produce an animal or plant of a new unknown species.
Admin
Admin
Admin
Admin
Admin
Admin
If I recall correctly, MIPS had to map virtual address page 0 to be valid instead of invalid because that was easier than fixing all the dereferences of null pointers in BSD.
Now suppose you had this:
BSD would print instead of going BOOOOM.It's not just BSD. One time when Windows 2000 was rebooting from a BSOD and displaying on the text console (a really useful place for this) a scrolling list of all the files that were getting deleted by native mode CHKDSK, some of the filenames were displayed as (null). It is better that Windows XP and later get that list into the application log (I wonder why not the system log but anyway it's still better than the way Windows 2000 displayed it). I wonder if the undecipherable index numbers are places where Windows 2000 had dereferenced null pointers or if they're something else.
Admin
Garbage goes in, garbage comes out. Never a miscommunication, you can't explain that!
Admin
Admin
Standard design procedure. If you have the mindset "This can go wrong", then you will take steps to ensure it is accessible / maintainable. If, through naivety or intellectual arrogance you have thought yourself into the cul-de-sac of "This cannot possibly go wrong", then it's more than possible you are going to put it at the back in the corner behind all the things that can go wrong.
In the programming context, the latter mindset usually means hardwiring magic numbers throughout, rather than entertaining the possibility that they may need to change in the future.
Admin
Autocorrect on Micturosoft products is my bugbear.
Specifically, when I'm writing a piece, I do not necessarily want it to put capitals automatically at the start of every line.
I blench at the number of emails coming out of our office to customers with the following structure:
"First you need to enter:
Where myParams is the parameter list as defined ..." etc.
That capital W causes pain and makes the customer think we are illiterate and amateurish.
Admin
What on earth is wrong with "brackets"?
Admin
Then again, calling () paretheses does allow a "parenthetical remark" to make sense (a remark that is in parentheses).
Shrug. I'm originally British, but I've lived among the Americans (yes, I know that makes it sound like they are a primitive tribe in some jungle somewhere - if the cap fits, nut something with it), and currently I live in France. Living in places full of foreigners is always good for a surreal experience, mostly because of the vagaries of spoken language, but occasionally because of incompatible meanings of gestures. The French are prone to indicating the number two by sticking two fingers up at me (or at each other), and I have to suppress the urge to give them a good talking-to about rude gestures.
Admin
The two-fingers gesture should be rude only when used by the English to the French, and it dates from the Battle of Agincourt. During the Hundred Years War (we are such amateurs in the art of warfare nowadays, we can't get a decent war to last longer than a couple of decades), when the French captured an English archer, they would chop off his arrow-fingers before ransoming him back to England. At the Battle of Agincourt, it was the archers of the English who effectively won the battle. As a gesture of arrogance and victory, they would show the French their two arrow fingers. Even now the gesture is a delight to use.
Admin
Try this one.
Admin
Dude, they use *nixes!
Also, I think the offender was so attached to the idea of compile-time error-checking because the nature of the problem he was dealing with was low-level. If the bug was in the output being invalid or the program was too slow it would probably be easier for him to understand that it's the programmer's fault. But since it was a crash, he was blaming the tool-chain. In some environments it makes sense. I.e. if the browser is crashing, I am more inspired to blame IE not the javascript I wrote. When the PHP segfaults, it's easier to blame the PHP creators thant the php code. Of course the story looks much different in case of C, as there are many dangerous constructs that let you shoot in your foot, but the story does not tell us what language the app was written in.
Admin
That's a myth. Much as I wish it was otherwise, it is a myth with no basis whatsoever in truth, beyond the fact that there was indeed a Battle of Agincourt at which English archers - as well as French rain - were very effective.
I usually make my parenthetical remarks between dashes.
Admin
This story should be made up. That level of incompetence is simply not possible to achieve.
Admin
The real WTFs are:
Confusing the grammatical construct (i.e. "parenthesis") with the symbology used to indicate it. As Carrie points out -- appositely -- you can use different symbols to indicate a parenthesis, using whichever is appropriate, and it's an instance (a stupid one, in my mind) of confusing the medium with the message to name a specific instance of the symbols as the construct it indicates.
Calling "()" parentheses, calling "[]" brackets and calling "{}" braces. We sensible Europe-side English-speakers call them "round brackets", "square brackets" and "curlies".
Admin
What's sensible about using two words when one would be enough?
Admin
Admin
(are you (correct technically)) (uses Yoda (not (grammar postfix) prefix)) (however (are there (few (examples useful)) (of (grammar (non infix))))) (pardon please (liberties my) (in (manner this)))
Admin
What was the warning? "WARNING: You have too much time on your hands, so here's something you can worry about since you have nothing else to do."
Admin
One might argue that the (or, at least, a) WTF is not noticing that a mild joke was in fact a joke. I must learn to be less subtle.
Admin
If haven't figured out to how to turn off the auto correct function in Outlook, then I'm afraid you ARE amateurish.
Admin
Admin
Admin
Should have asked the dude to explain the difference between OMVS and Unix.
Admin
"(x + y) * n is different then x + y * n for almost all cases."
There are an infinite number of cases where that statement is true and an infinite number of cases where it is false (x=0). How is that "almost all" ?
Admin
Admin
http://mathworld.wolfram.com/AlmostAll.html
Admin
Ha - good one, I like that - thanks!
What I might have done:
Write a program that incriminates someone in some illegal or otherwise nasty stuff. Following execution of programm, person named would be taken to front desk - and beyond - by security. Job done!
:->
Admin
God damn I hate pure polish notation …
Admin
I read that as that it would make it easier to program the middleware. Though I was expecting that the WTF was going to be the intermediate server was Windows based... Possibly even an old repurposed desktop still running windows 95 or something!
Admin
Admin
What's sensible about arbitrarily assigning two different words to differentiate between similar objects when there are simple descriptive phrases which anyone familiar with the symbols in question is incapable of confusing?
Admin
"Parens"? Jesus H Christ on a lavatory built for two, what an ugly word! Even uglier than wind-farms and M-D-Y convention.
Admin
Oh the horror. An expression in parentheses where the parentheses aren't strictly necessary. Expect the world to end before midnight.
What an miereneuker's obsession to care if return values are wrapped in parens
Admin
How is a set of superfluous parentheses a grievous sin? WTF is this obsession with such things?