- 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
Angie suffers from the malady "English Major's Brain". People who choose English as their major area of study in college instead of Computer Science or Engineering aren't thinking ahead to what can make them a decent living.
Even though my speling, grammer, and punctuation are'nt exactly correct, I can at least make a better living than most people who pursued liberal areas of study in college.
Admin
She wouldn't had have this problem if only she was educated at Oxford.
Admin
The REAL WTF(TM) is how did this person manage to get a job as a programmer to begin with? Even a neophyte should understand that programming syntax is not the same as English syntax.
Admin
Admin
Admin
Admin
Too bad making a better living doesn't make you a better person.
Admin
outprinting "the result is " and naming your variables 'value'.... classic WTF signs.
Admin
By the way, you spelt 'write' wrong, wright?
Admin
I, for one, hope she finds a good job as an editor somewhere. I'm glad to see someone standing up for proper grammar these days.
Admin
Neither does being able to spell correctly...
Admin
A comma outside the quote is perfectly acceptable English syntax. It just depends on the style book you're using. The Chicago Manual of Style, for example, lists this as a perfectly acceptable alternate syntax for quotations. There's a couple of others containing similar rules.
Admin
Oh, this makes me happy:
Very well done, sir.
Admin
Admin
Simple, all we need to do for this programmer is write a macro which reverses the order of arguments. Then she can write the grammatically correct:
PRINT( x, "The value is %s." );
The macro should probably also add a \n onto the end of the format string too, since that was absent.
Why bother learning the programming language when you can just rewrite it to satisfy how you think it should work?
Admin
I would only had have corrected this statement if I saw all the errors.
Admin
Admin
Angie went on to conceive a much simpler programming language based heavily on common English conventions. She never acted on the idea. Instead, she simply vented to her friend Matsumoto and then changed careers to red gemstone wholesales. Go figure.
Admin
Spoken like a true English Major...
Admin
Angie should check out Inform 7: http://www.inform-fiction.org/I7/Inform%207.html
Admin
The comma (or period) inside the quotes thing is ridiculous in English anyway. If you're quoting someone, and they didn't have a comma in what they said/wrote, it makes no sense to add the comma inside the quotation marks, given the meaning of "quoting" someone. Also it looks "stupid."
Admin
Oh I get it - the WTF is that she's a girl and she's in programming. Good one!
Admin
My bachelor's of arts is in English and Computer Science (double major). I most certainly know the difference between natural language and programming languages. For one thing, programming languages make considerably more sense. ;-)
Anyone who can grasp the often perplexing rules of English grammar should have no trouble accepting that C++ is different, especially given its relative simplicity of syntax. This woman is an embarrassment to English majors.
Admin
I think you can test for computer programming talent long before going anywhere near LOGO or BASIC or any other formal language. Just look for the kids who are always asking why English syntax and spelling are so wierd^Wweird^Wstupid.
I don't care what languages he's worked in or what project experience he's had; send me the candidate who's comfortable punctuating the English sentence
and I'll teach him what he needs to know about #@%*ing ASP.-Harrow.
Admin
No wait - I get it!
The WTF is that printf is a C (without any pluses or anything) function, right?
Admin
the lack of \n ;)
Admin
I'm saying they do it differently in Britain. http://en.wikipedia.org/wiki/Comma_(punctuation)#Differences_between_American_and_British_usage
Note the British usage in conformity with that of a programming language.
Sean knows what I'm talking about.
Admin
Admin
I bet they hired a pure mathematician later on, and unfortunately thier head exploded at the impossibility of i = i + 1
Admin
#define PRINT(a1,s) printf(s,a1) #define PRINT(a1,a2,s) printf(s,a1,a2) ... #define PRINT(a1,a2,...,a100,s) printf(s,a1,a2,...,a100); ...
puhleeze don't give them any ideas!
Admin
im just happy we had 3 stories today
Admin
It's not even a matter of being an alternative. It's the correct form in Britain, to say nothing of being far more logical - people do not say ",", therefore they should not be reported as such! Silly left-pondians...
Admin
000100 IDENTIFICATION DIVISION. 000200 PROGRAM-ID. HELLOWORLD. 000300 000400* 000500 ENVIRONMENT DIVISION. 000600 CONFIGURATION SECTION. 000700 SOURCE-COMPUTER. RM-COBOL. 000800 OBJECT-COMPUTER. RM-COBOL. 000900 001000 DATA DIVISION. 001100 FILE SECTION. 001200 100000 PROCEDURE DIVISION. 100100 100200 MAIN-LOGIC SECTION. 100300 BEGIN. 100400 DISPLAY " " LINE 1 POSITION 1 ERASE EOS. 100500 DISPLAY "Hello world!" LINE 15 POSITION 10. 100600 STOP RUN. 100700 MAIN-LOGIC-EXIT. 100800 EXIT.
Admin
Admin
I'd have said "Well, it's not really the same as a comma in english, it just looks like one - it goes before each parameter other than the first" - and corrected it to printf("The value is %d" ,value);
Admin
That sentence made absolutely no sense to me until I read it out loud :P
And the real WTF are commas in English in general... i never get them right.
Admin
And the real WTF are commas in English in general... i never get them right.
And please ignore my previous post... it's late ;)
Admin
Admin
#define PRINT( ..., s ) printf( (s), VA_ARGS )
doubt this would work though.
Admin
Me spell chucker work grate, butt eye knead a grandma chicken.
Admin
It is an alternative, no? You just happen to speak and write a dialect of English that uses the logical method of handling quotations as the default.
At least we don't stick extra letters and syllables in to perfectly serviceable words like "color" and "aluminum". Just think of the wasted ink and paper! ;)
Admin
It's bb code, not html.
Again, trouble with language differences
Captcha dubya
Admin
Reminds me of Dilbert's code review: "I don't think you understand the proper usage of the semicolon. And I'm not too fond of your over usage of curly braces, either."
As for good grammar for software engineers... The rest of the world thinks we're somehow smarter than everyone else. When people find out you can't spell you're [sic] way out of a paper bag, they suddenly loose [sic] confidence in your programming abilities. If they can spell better than you, then they're smarter than you, and if they're not smart enough to write software...
Admin
Admin
The whole "comma inside or outside the quotes" thing isn't even a grammar issue. It's a typographic issue. It only comes up when you're printing. Otherwise the correct answer is to write the quote marks above the comma like a normal person.
Problem is that simple typography can't do that. So American typographers decided that the comma should come before the quote because it looked better.
But grammatically, it's completely irrelevant: they both come at the end of the phrase, and there is no specific order: they're just there.
Admin
You don't go to college to be a good person. You go to learn the skills you need to make a good living. At least thats why I thought I was spending assanine amounts of money to have some professor state the obvious to me for 8 hours a week so I can get a pretty piece of paper with my name on it.
Admin
Oh Lord, this reminds me of when I was writing a User Manual.
I had the sentence:
To exit the program, type "Quit", then press the Enter key.
The editor person sent it back as:
To exit the program, type "Quit," then press the Enter key.
I tried to persuade them that these were not quotation marks, but "literal marks", and putting the comma inside would be commanding the user to type Quit comma, which was incorrect.
I never did manage to convince them of the right way to do this. So every instance of a command example in the manual was correct English, but wrong, in that it did not work.
I almost changed the program to accept a trailing comma, but that would have been unpalatable (to me).
Admin
Seriously, what's wrong with creating wrappers for standard library functions that allow you to reorder the parameters as you see fit? If a function takes n parameters, a series of simple tests (type, length, range) would tell the function which is which. This is how all programming languages should be.
Admin
I remember that commas can be used for english if,then conditions and as brackets around text that can be ignored. Some early versions of Basic, pre .NET, back in line numbered days even allowed it in place of the THEN. You can't have a . in the middle of a sentence either. Oops, done it again!
Admin
You win a free internet for that Loudon Wainright reference.