- 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
This is the second most interesting word I've looked up in a dictionary today.
Earlier this afternoon I discovered that the word "towel" can be used as a verb, meaning "to beat with a stick."
O_o
Admin
I worked with a guy whose girlfriend had almost no understanding of programming. She did, however, know enough to call him 10 times a day for help.
I suppose it was worth it to him to put up that so she could earn $60,000.
I knew both of them from college and she'd taken one CS class and done quite poorly.
Later at another job I met someone who had worked with her and he said she was quite pleasant but got very defensive when asaked any kind of technical question. I suppose because it is bad form to call your boyfriend up in the middle of a discussion with a coworker.
Lost touch with the happy couple and can't tell you what happened after that.
Admin
Commas on the outside do seem more logical, and I've been annoying teachers/TAs since junior high by doing that, long before programming anything. Some conventions are more useful than others.
Admin
common like "there" "are" and "a lot" ?
Admin
Pity the poor bastard who has to maintain your gratuitous nonstandard crap. It's not as if there's a reason for swapping the parameters al around.
Admin
It's not a Loudon Anything reference, it's how you form that friggin sentence. It's called the goddamned subjunctive mood, and you best learn it if you want to speak English.
Right: "...if she were educated at Oxford." Wrong: "...if she was educated at Oxford."
Right: "I wish that every kiss were never-ending." Wrong: "I wish that every kiss was never-ending."
Admin
Thinking about it, the logical place for a comma is outside the parentheses (and quotation marks are nothing if not parentheses). This is therefore one of those rare cases where computer languages have got it right and natural language/typography has got it wrong. But, we're stuck with convention. The point of convention is that you don't (mentally) stutter when you read something -- just as the compiler won't (umm ... mentally) stutter when it reads something.
Of course, if you expect an Oxford liberal arts graduate to be any use at computers, then you're dreaming (spires or otherwise). Believe me. I'm one, and we're all idiots.
Not very likely. Most pure mathematicians past the age of, oh, around nine and a half can cope with discrete symbolic systems. They might bitch at the fact that this is not expressed as i <= i + 1, but they'll deal with it.Admin
I hope there was heavy sarcasm there. What are you going to do with a function with the following prototype, using your logic?
void someFunction(int a, int b, int c)
Yeah... Good luck reordering those and getting proper output that means anything...
Type checks are useless, here, as are range checks, depending on what, exactly, the function does. Length is also useless, since they're all the same type.
Good job.
Admin
They'd easily be able to cope with it because they are logical, thinking individuals. However, even if they were being pedantic, you could point out that i = i + 1 is equivalent to i = add(i,1) and they would likely be happy.
Admin
(at least if I can get the pronunciation of words correct, but with the current spelling of English, it's not that simple.)
But no, such a spelling doesn't seem to work with English. It works better with languages like Italian.
Admin
Aha (or does it have to be "uh huh", or something like this?), interesting: http://www.spellingsociety.org/
Admin
A second comma would have been too creative. Oh well, some people may also not be able to count to two. Never mind.
Admin
Why would that make me happy? In case you haven't noticed, mathematicians invented operator overloading.
Admin
Burglarized vs burgled ...
Admin
Admin
I do it that way all the time. Sometimes I even purposely reformulate a sentence to make it come out with nontraditional, but logical, punctuation like that.
Admin
Adam V.'s real name is Dr. Joe Newcomer.
Angie's real name is unpublished, but she graduated from CMU.
http://www.flounder.com/bricks.htm
(And how did I find this? My Google search produced exactly one result. But while producing it, Google asked if I meant print instead of printf.)
(Hey you stupid captcha, it should be print not paint.)
Admin
"I can't figure out why it won't complile?"
A spaling error AND an out-of-place question-ma?k in the same sentence? From a grammer expert?
Admin
Rather ironic that the article is littered with grammatical errors.
Admin
Wow. Cheap shot from the story poster.
Under a year sounds about right for any junior programmer. If they're actually good, they'll move on as most companies don't promote. If they're as hopeless as the above snide remark suggests, they'd not have have lasted past the first couple of months.
To be honest, the way this story's written makes me wonder if it's intended to be a "code" version of the coffee cup holder story. On any other grounds, it's just a typo story with the poster attributing it (the junior's explanation of the typo and why she didn't immediately spot it) to stupidity.
Admin
This is so much better than the original story :-)
Admin
They might (in the sense that it indicates a pause) if they later went on and said something else.
My punctuation's got terrible, what with years of programming plus confusion between English and American styles.
http://catb.org/jargon/html/writing-style.html
Admin
You should have made it so that on receiving "Quit," it would print a message about how this is an error in the manual, that the ',' should have been outside the quotes and the correct command is "Quit".
Though be careful, some people will type the command with the quotes intact.
Admin
I have never understood this peculiarity of the english language.
Quotation marks are used to, well, quote text. The comma itself does clearly not belong to the quoted text itself, but serves to separate it from the surrounding text.
Thus, to me (as a programmer, obviously..sure) it seems completely illogical to place the comma within the quotes, ever.
IMHO, it should be considered wrong in English for the same reason that it is wrong in most programming languages.
Admin
They just need to understand that it,s not an equation, it's a command; there's an implied make or let before it.
Admin
It is considered wrong in English. Can't speak for American, though.
Admin
Admin
Why would that make him happy? The problem isn't the "+" operator; the problem is the relationship implied by "=". Give the mathematician a pure functional language to work with. That will make him happy.
Admin
They just need to understand that it's not an equation, it's a command; there's an implied make or let before it.
Admin
Admin
There is three errers in this sentence.
Find them
Admin
Both Adam and Angie deserve a WTF award... maybe Angie intended for the comma to be part of the output... Adam should have just advised that Angie add another comma after the quotes!!!
Klassick!!!
Admin
echo ("I said, Did he ask "Are you going?" or "Aren't you going?"?");
Admin
Admin
There are a couple of others containing ....
Admin
Ha Ha that is hilarious!
I would have added support for a trailing comma though. A lot of times us poor (but highly superior -of course) programmers have to conform to stupid ideas.
-Dan Krüsi
Admin
Admin
I think the use of assignment and functions by mathematicians predates programming. But what do I know, I'm just a math graduate...
Admin
The Chicago Manual of Style (15th ed.) gives the following:
All typos are my own.Admin
Of course, that just turns it into a paradox... the existence of the third error makes that third error not exist. =)
Admin
Simple.
Admin
Or, if he must work in a programming environment with state, something like i := i + 1 would work too to indicate assignment, and i = 1 to indicate equality.
I think that's the only useful thing that I've seen from any Pascal-like languages.
Admin
This is the kind of reasoning that gave us lolcode.. ; ) http://lolcode.com
Admin
Someone said that putting the commas inside the quotes (in English) looks funny. I think it looks funny too, but apparently, typographers of old thought it looked better.
I helped proofread a couple of my parents' books, and when I came across instances where the comma was outside of the quotes, I wanted to leave them alone, and Mom & Dad said that was OK with them (but they thought the publisher's proofreader would probably catch it).
I think commas outside of quotes looks more balanced and logical. The most common rule, however, is for the comma to go inside the quotes. It's not logical, but many rules aren't.
Admin
That depends on what you're trying to say.
Right: "If she was educated at Oxford, I'm a monkey's uncle." Wrong: "If she were educated at Oxford, I'm a monkey's uncle."
For extra points, remember to use the subjunctive in "that" clauses indicating wishes:
Right: "It is desired that the software implement this functionality." Wrong: "It is desired that the software implements this functionality.
I had to correct my advisor on this one in my Master's thesis.
Admin
"Not very likely. Most pure mathematicians past the age of, oh, around nine and a half can cope with discrete symbolic systems. They might bitch at the fact that this is not expressed as i <= i + 1, but they'll deal with it."
If i represents infinity, then indeed i = i + 1. For either countably infinite or uncountably infinite.
Admin
It was all a misunderstanding. She's actually "pro-grammar".
Admin
AAArgh. Banner ad on this page about who should carry the Olympic torch:
"Support your country's finalist!"
Why? What if I think some other country's finalist is more deserving? Why push isolationism and narrow-mindedness?
Admin
Nice try. Had it been
"There's two others containing..."
then you would be unarguably right. But "a couple of others" can function either as a plural noun (two others), or a singular noun (one couple (of others))...
Admin
Can I just say that all of the intentional grammar mistakes in the description and comments REALLY hurt my brain?
That being said, I can still write syntactically correct C code. (Although sometimes if I've been writing a lot of Perl, I accidentally slip some perl into my C ("you got your Perl into my C! You got your C into my Perl! Hey...").) Maybe I started programming early enough so that my brain could handle the different syntaxes -- sort of like how kids who grow up bilingual are able to learn other languages much more easily.