Comment On Whom Should I Say is Calling?

An Anonymous reader who is part of a team that works for a small company, maintaining a messy codebase of a large and expensive company writes, "We were having trouble finding why a particular PL/SQL Stored Procedure was failing. Inside the SP, we found the following: [expand full text]
« PrevPage 1 | Page 2 | Page 3Next »

Re: Whom Should I Say is Calling?

2009-01-26 09:02 • by Walleye (unregistered)
A crude attempt at security?

Re: Whom Should I Say is Calling?

2009-01-26 09:02 • by Paul Berry (unregistered)
240914 in reply to 240913
Heisenbug!

Re: Whom Should I Say is Calling?

2009-01-26 09:02 • by Apostrophe'Man (unregistered)
How long had this been a problem? Not very wtf; you hard code something like that you'll always have IDE to Release compile issues, as well as speed. I compile my computational simulations to run outside the IDE, get ~20% speed boost.

Re: Whom Should I Say is Calling?

2009-01-26 09:03 • by joelkatz
I can't wait to see how people try to defend this one.

Re: Whom Should I Say is Calling?

2009-01-26 09:08 • by mbv (unregistered)
240917 in reply to 240916
joelkatz:
I can't wait to see how people try to defend this one.

Too late...

Re: Whom Should I Say is Calling?

2009-01-26 09:08 • by NSCoder
The Real WTF is the misuse of 'whom' in the title.

Re: Whom Should I Say is Calling?

2009-01-26 09:15 • by kerokeroppy (unregistered)
240919 in reply to 240915
is this an attempt to let us know that you develop computational simulations?

Somthing on the line of "hey guys, i develop computational simulations" would have been better.

Re: Whom Should I Say is Calling?

2009-01-26 09:16 • by B (unregistered)
240920 in reply to 240916
I'd defend it via the many programs on the typical hard drive that have some sort of "if (!strcmp(argv[0], "something"))" magic going on. For example, vi, vim, ex, and view are the same program that behaves differently depending on invocation. tex, latex, pdflatex, and a half-dozen other programs are all just different paths in the pdftex executable.

As for having an IDE that arbitrarily changes argv[0], wtf?

Re: Whom Should I Say is Calling?

2009-01-26 09:17 • by Mike (unregistered)
It's not a completely crazy bit of code... busybox, anyone?

Great software package, emulates just about any linux program that you'd need in an embedded/lightweight device, and works (in the main mode) by checking the calling name.

$ make busybox
...
$ ln -s busybox less
$ ln -s busybox vim
$ ln -s busybox login
$ ln -s busybox grep

etc....

Re: Whom Should I Say is Calling?

2009-01-26 09:22 • by kastein
whoa. whose idea was THAT?! it reminds me of a few programs I've seen that act different if you run them via a symlink or directly... making your app decide how to behave based on argv[0] considered harmful.

Re: Whom Should I Say is Calling?

2009-01-26 09:24 • by ThomsonsPier
240923 in reply to 240918
NSCoder:
The Real WTF is the misuse of 'whom' in the title.

Would you care to expand on that?

Re: Whom Should I Say is Calling?

2009-01-26 09:26 • by notme (unregistered)
TRWTF is the article's headline. It should read "Who Should I Say is Calling?". The word "whom" is only for indirect objects, as in "Whom can you trust?", or "Whom should I tell you called?".

Re: Whom Should I Say is Calling?

2009-01-26 09:27 • by Grammarian (unregistered)
Who should I say is calling; not whom. Don't use $10 words if you don't know what they mean. God!

Re: Whom Should I Say is Calling?

2009-01-26 09:28 • by ih8u (unregistered)
240926 in reply to 240918
NSCoder:
The Real WTF is the misuse of 'whom' in the title.


Can we drop the grammar check? I do this too -- quietly. I think it's fun to constantly be testing my mad grammar skillz. It's like the interweb is Cato to my Inspector Clouseau.

However, I don't prance around showing off my knowledge.

Re: Whom Should I Say is Calling?

2009-01-26 09:29 • by Anonymous (unregistered)
Anyone that develops in Visual Studio should have a full understanding of the Visual Studio host process and when and how it should be used (and I hope you realise that it does a lot more than just add 'vshost' to the filename!). Accordingly, any good VS user should understand that their executable will have a different name when running through the IDE, and possibly under other circumstances as well. The WTF here is that some moron hard-coded a value that could change at runtime. That's not a WTF, it's just a fact of life when working with crap developers (you may detect that I speak from experience here).

Re: Whom Should I Say is Calling?

2009-01-26 09:29 • by Eric (unregistered)
240928 in reply to 240923
ThomsonsPier:
NSCoder:
The Real WTF is the misuse of 'whom' in the title.

Would you care to expand on that?

"Whom" is an object. The word "Whom" in the title is being used as the subject of the object clause "whom is calling." Still sound right? Try turning it into a sentence by replying to the question and using an object pronoun: "I should say him is calling."

Re: Whom Should I Say is Calling?

2009-01-26 09:33 • by Mikkel Ovesen (unregistered)
He he...

Maybe this is a very clever attempt to execute development sql when running from the IDE, instead of live sql... or...not ;)

Re: Whom Should I Say is Calling?

2009-01-26 09:35 • by Monday (unregistered)
240930 in reply to 240924
notme:
TRWTF is the article's headline. It should read "Who Should I Say is Calling?". The word "whom" is only for indirect objects, as in "Whom can you trust?", or "Whom should I tell you called?".


Hey I learned something! Guess I'm done for the day.

Re: Whom Should I Say is Calling?

2009-01-26 09:40 • by Matt S. (unregistered)
IF .. AND (p_program_name <> '[executable name].exe' || p_program_name <> '[executable name].vshost.exe')
THEN

RAISE invalid_calling_pgm;

END IF;

Problem solved. Just Do What It Takes.

Re: Whom Should I Say is Calling?

2009-01-26 09:41 • by Dave (unregistered)
240932 in reply to 240916
joelkatz:
I can't wait to see how people try to defend this one.
Hang on, surely you're the one who always tries to defend retarded and non-sensical principles? You know, like all your forum replies.

Re: Whom Should I Say is Calling?

2009-01-26 09:43 • by Anonymous (unregistered)
...the client wanted that particular stored procedure to do something completely different when called from a different source.


Uhh... why? Is there some good reason to not split this into two separate stored procedures?

Re: Whom Should I Say is Calling?

2009-01-26 09:45 • by Charles Manson (unregistered)
240934 in reply to 240931
Matt S.:
IF .. AND (p_program_name <> '[executable name].exe' || p_program_name <> '[executable name].vshost.exe')
THEN

RAISE invalid_calling_pgm;

END IF;

Problem solved. Just Do What It Takes.
Your link has blown away my sarcasm shields. In other words, I could totally buy into FAD right now. Bad way to start a week.

Re: Whom Should I Say is Calling?

2009-01-26 09:51 • by Voodoo Coder
240935 in reply to 240926
ih8u:
NSCoder:
The Real WTF is the misuse of 'whom' in the title.


Can we drop the grammar check? I do this too -- quietly. I think it's fun to constantly be testing my mad grammar skillz. It's like the interweb is Cato to my Inspector Clouseau.

However, I don't prance around showing off my knowledge.


Seriously...as soon as I read the title of this article I thought "Well crap...whether it's correct or not, there will be a group of insufferable know-it-alls who will point and laugh to show how sharp and witty they are"

Seriously, ya social mutants: It is intrinsically rude to point out grammatical errors. I am aware that the internet is not at the apex of courtesy, but for chrissake...the grammar checks are getting a little ridiculous around here...

Re: Whom Should I Say is Calling?

2009-01-26 09:53 • by pvr (unregistered)
This is not actually uncommon. I have a plethora of Access databases (ugh) that connect to Oracle (ugh again) and the "security" is to actually check if the login is coming from Acess.exe.

It took me nearly 2 days to figure out why I couldn't login via SQL*Plus (ugh!!@#!@#!@#!@#!) but could through the "Application".

And no, they won't let me change that.

Re: Whom Should I Say is Calling?

2009-01-26 10:08 • by Leo (unregistered)
240938 in reply to 240935
Voodoo Coder:
ih8u:
NSCoder:
The Real WTF is the misuse of 'whom' in the title.


Can we drop the grammar check? I do this too -- quietly. I think it's fun to constantly be testing my mad grammar skillz. It's like the interweb is Cato to my Inspector Clouseau.

However, I don't prance around showing off my knowledge.


Seriously...as soon as I read the title of this article I thought "Well crap...whether it's correct or not, there will be a group of insufferable know-it-alls who will point and laugh to show how sharp and witty they are"

Seriously, ya social mutants: It is intrinsically rude to point out grammatical errors. I am aware that the internet is not at the apex of courtesy, but for chrissake...the grammar checks are getting a little ridiculous around here...


I'd say it's intrinsically rude to use terrible grammar, myself.

Re: Whom Should I Say is Calling?

2009-01-26 10:16 • by snoofle
Ok folks, simple grammar rule for who/m:

Insert "he" or "him" at the first point after who/m where it makes sense. If "he" makes sense, use who; if "him" makes sense, use whom.

Whom Should I Say is Calling?
Whom [Should I Say (He/Him) is Calling]? --> he --> Who

Whom is it?
Whom [is it (he/him)]? -> him -> Whom

Re: Whom Should I Say is Calling?

2009-01-26 10:29 • by Voodoo Coder
240941 in reply to 240938
Leo:
Voodoo Coder:
ih8u:
NSCoder:
The Real WTF is the misuse of 'whom' in the title.


Can we drop the grammar check? I do this too -- quietly. I think it's fun to constantly be testing my mad grammar skillz. It's like the interweb is Cato to my Inspector Clouseau.

However, I don't prance around showing off my knowledge.


Seriously...as soon as I read the title of this article I thought "Well crap...whether it's correct or not, there will be a group of insufferable know-it-alls who will point and laugh to show how sharp and witty they are"

Seriously, ya social mutants: It is intrinsically rude to point out grammatical errors. I am aware that the internet is not at the apex of courtesy, but for chrissake...the grammar checks are getting a little ridiculous around here...


I'd say it's intrinsically rude to use terrible grammar, myself.


You're right. If I presented an article in a forum such as this, where the readers are notorious for their knowledge of syntax, it would be incredibly rude of me to not at least attempt some semblance of proper usage and spelling.

However...it is just plain wrong to go on about correcting trivial and common errors. This is as bad as correcting a fragmented sentence or a split infinitive in everyday conversation.

Moreover, the corrections are not being done to educate, or save the writer from embarrassment. They are made with a smug tone to make the correcter feel a little better than the writer.

It is becoming an annoying cliche around here, not unlike the CAPTCHA at the bottom of a comment.

Re: Whom Should I Say is Calling?

2009-01-26 10:31 • by Anon Ymous
240942 in reply to 240939
snoofle:
Ok folks, simple grammar rule for who/m:

Insert "he" or "him" at the first point after who/m where it makes sense. If "he" makes sense, use who; if "him" makes sense, use whom.

Whom Should I Say is Calling?
Whom [Should I Say (He/Him) is Calling]? --> he --> Who

Whom is it?
Whom [is it (he/him)]? -> him -> Whom


Your second example is incorrect.

Correct:
Who is it?
He is it.
It is who?
It is he.

This is an example of predicate nominative, in which the nouns on both sides of the verb are nominative.

A problem can sometimes arise when the two nominatives each take a different form of the verb. In these cases, the verb should agree with the subject (who or what the sentence is directly about).

Correct:
It am I.
I am it.

Incorrect:
It is I.
I is it.

Re: Whom Should I Say is Calling?

2009-01-26 10:33 • by Anonymous (unregistered)
This thread now has more to do with one little grammatical error than it does with the actual content of the article. I hope you sad little nitpicking losers are happy.

Re: Whom Should I Say is Calling?

2009-01-26 10:40 • by OutWithTheTroll (unregistered)
240944 in reply to 240939
snoofle:
Whom Should I Say is Calling?
Whom [Should I Say (He/Him) is Calling]? --> he --> Who

Whom is it?
Whom [is it (he/him)]? -> him -> Whom


And what if, like in this case, it is 'it' (the calling exe)?

Whom [Should I Say (It) is Calling]? -->

Who/Whom?
What/Wham?

</NonEnglishSpeakingProgrammerMonkey>

Re: Whom Should I Say is Calling?

2009-01-26 10:42 • by Anon Ymous
240945 in reply to 240944
OutWithTheTroll:
snoofle:
Whom Should I Say is Calling?
Whom [Should I Say (He/Him) is Calling]? --> he --> Who

Whom is it?
Whom [is it (he/him)]? -> him -> Whom


And what if, like in this case, it is 'it' (the calling exe)?

Whom [Should I Say (It) is Calling]? -->

Who/Whom?
What/Wham?

</NonEnglishSpeakingProgrammerMonkey>


http://en.wikipedia.org/wiki/Declension

Re: Whom Should I Say is Calling?

2009-01-26 10:43 • by Beldar the Phantom Replier (unregistered)

...the exe name is prepended by .vshost.exe...

You keep using that word. I do not think it means what you think it means.

Re: Whom Should I Say is Calling?

2009-01-26 10:48 • by AT (unregistered)
240947 in reply to 240941
Voodoo Coder:
Leo:
Voodoo Coder:
ih8u:
NSCoder:
The Real WTF is the misuse of 'whom' in the title.


Can we drop the grammar check? I do this too -- quietly. I think it's fun to constantly be testing my mad grammar skillz. It's like the interweb is Cato to my Inspector Clouseau.

However, I don't prance around showing off my knowledge.


Seriously...as soon as I read the title of this article I thought "Well crap...whether it's correct or not, there will be a group of insufferable know-it-alls who will point and laugh to show how sharp and witty they are"

Seriously, ya social mutants: It is intrinsically rude to point out grammatical errors. I am aware that the internet is not at the apex of courtesy, but for chrissake...the grammar checks are getting a little ridiculous around here...


I'd say it's intrinsically rude to use terrible grammar, myself.


You're right. If I presented an article in a forum such as this, where the readers are notorious for their knowledge of syntax, it would be incredibly rude of me to not at least attempt some semblance of proper usage and spelling.

However...it is just plain wrong to go on about correcting trivial and common errors. This is as bad as correcting a fragmented sentence or a split infinitive in everyday conversation.

Moreover, the corrections are not being done to educate, or save the writer from embarrassment. They are made with a smug tone to make the correcter feel a little better than the writer.

It is becoming an annoying cliche around here, not unlike the CAPTCHA at the bottom of a comment.


It may, perhaps, be rude to point out grammatical errors in an email or off-the-cuff forum posting. However, the comment here was directed at the author of an article posted for consumption by thousands of readers of a for-profit online publication. It's not unreasonable to expect the authors of these articles to comprehend and follow the basic grammar rules of their chosen language while mocking the language abuses of others.

Re: Whom Should I Say is Calling?

2009-01-26 10:50 • by Neil (unregistered)
Did anyone notice that Whom was incorrect in the title? How about somebody give us a grammar lesson on the correct way to use who/whom?

:P

Re: Whom Should I Say is Calling?

2009-01-26 10:51 • by Nitpicking Loser (unregistered)
240949 in reply to 240931
Matt S.:
IF .. AND (p_program_name <> '[executable name].exe' || p_program_name <> '[executable name].vshost.exe')
THEN

RAISE invalid_calling_pgm;

END IF;
Problem solved. JustDo What It Takes.
You do realize that this code will now always raise the invalid_calling_pgm exception? Is that what you call "problem solved"?

Re: Whom Should I Say is Calling?

2009-01-26 11:00 • by Vizzini (unregistered)
240950 in reply to 240946
But that would be INCONCEIVABLE.

captcha - tristique - triple the mystique

Re: Whom Should I Say is Calling?

2009-01-26 11:03 • by jimlangrunner
240951 in reply to 240925
Grammarian:
Who should I say is calling; not whom. Don't use $10 words if you don't know what they mean. God!
Is Alex really a god? I mean, he's really cool and all that, but a deity? Wow!

Addendum (2009-01-26 11:09):
Grammarian:
Who should I say is calling; not whom. Don't use $10 words if you don't know what they mean. God!
Is Alex really a god? I mean, he's really cool and all that, but a deity? Wow!

(Snicker. And I didn't even get involved in the whole who/whom thing.)

Re: Whom Should I Say is Calling?

2009-01-26 11:04 • by Vizzini (unregistered)
240952 in reply to 240946
Beldar the Phantom Replier:

...the exe name is prepended by .vshost.exe...

You keep using that word. I do not think it means what you think it means.


But that would be INCONCEIVABLE.

captcha - incassum - Incassum ade a mistake, I'll try again

Re: Whom Should I Say is Calling?

2009-01-26 11:07 • by Kevin (unregistered)
240953 in reply to 240938
It is rude to make bodily noises in polite company, but it is also rude to comment on someone else's bodily noises. See where I'm going with this?

Re: Whom Should I Say is Calling?

2009-01-26 11:11 • by Apostrophe'Man (unregistered)
240955 in reply to 240919
Application of a real world example.

Re: Whom Should I Say is Calling?

2009-01-26 11:11 • by The Trumpeter (unregistered)
240956 in reply to 240953
Kevin:
It is rude to make bodily noises in polite company, but it is also rude to comment on someone else's bodily noises. See where I'm going with this?


Make sure you're in impolite company??

Re: Whom Should I Say is Calling?

2009-01-26 11:13 • by DaveK
240957 in reply to 240921
Mike:
It's not a completely crazy bit of code... busybox, anyone?
You're not exactly helping your argument there...

Re: Whom Should I Say is Calling?

2009-01-26 11:20 • by Lolcats (unregistered)
240958 in reply to 240943
Anonymous:
This thread now has more to do with one little grammatical error than it does with the actual content of the article. I hope you sad little nitpicking losers are happy.


I'll try to tip the scales towards Lolcats

Re: Whom Should I Say is Calling?

2009-01-26 11:24 • by not_a_real_name (unregistered)
240959 in reply to 240946
Beldar the Phantom Replier:

...the exe name is prepended by .vshost.exe...

You keep using that word. I do not think it means what you think it means.

I think you may not be aware it has two alternative meanings.

http://en.wiktionary.org/wiki/prepend

Re: Whom Should I Say is Calling?

2009-01-26 11:27 • by SenTree
240960 in reply to 240914
Paul Berry:
Heisenbug!

I was about to say "needs more cat" - but I see someone beat me to it.

Re: Whom Should I Say is Calling?

2009-01-26 11:32 • by DaveK
240961 in reply to 240942
Anon Ymous:

Correct:
It am I.
I thought we were discussing English grammar here, not Lolcat.

Addendum (2009-01-26 11:40):
I see the poster three above me came to the same conclusion while I was writing my reply!

Re: Whom Should I Say is Calling?

2009-01-26 11:33 • by Charles400
240962 in reply to 240925
Q: Knock, knock.
A: Who's there?
Q: Fuck.
A: Fuck who?
Q: Fuck WHOM!

Re: Whom Should I Say is Calling?

2009-01-26 11:39 • by DaveK
240963 in reply to 240928
Eric:
ThomsonsPier:
NSCoder:
The Real WTF is the misuse of 'whom' in the title.

Would you care to expand on that?

"Whom" is an object. The word "Whom" in the title is being used as the subject of the object clause "whom is calling." Still sound right? Try turning it into a sentence by replying to the question and using an object pronoun: "I should say him is calling."
Ok, what's wrong with that?
"Phone call for the Powerpuff girls!"
"Ok, whom should I say is calling?"

"You should say Him is calling."

Re: Whom Should I Say is Calling?

2009-01-26 11:44 • by hikari
240964 in reply to 240920
B:
I'd defend it via the many programs on the typical hard drive that have some sort of "if (!strcmp(argv[0], "something"))" magic going on. For example, vi, vim, ex, and view are the same program that behaves differently depending on invocation. tex, latex, pdflatex, and a half-dozen other programs are all just different paths in the pdftex executable.

As for having an IDE that arbitrarily changes argv[0], wtf?


It doesn't change it. Visual Studio executes code inside a host process; the host process is called ${ProjectName}.vhost.exe. I have no idea what voodoo the wrapper carries out. It's not part of the actual project and won't be included in the project files if you build an installer.

Re: Whom Should I Say is Calling?

2009-01-26 11:56 • by DaveK
240966 in reply to 240920
B:
I'd defend it via the many programs on the typical hard drive that have some sort of "if (!strcmp(argv[0], "something"))" magic going on. For example, vi, vim, ex, and view are the same program that behaves differently depending on invocation. tex, latex, pdflatex, and a half-dozen other programs are all just different paths in the pdftex executable.
But this is not the same thing. This is a stored proc that changes its behaviour according to argv[0], which is more like a library function. It's as if the behaviour of tex/latex/etc. depended not on the name by which you invoked it, but on the name of the shell from which you invoked it.
B:

As for having an IDE that arbitrarily changes argv[0], wtf?

Well, ...

The requirement on a Strictly Conforming POSIX Application also states that the value passed as the first argument be a filename associated with the process being started. Although some existing applications pass a pathname rather than a filename in some circumstances, a filename is more generally useful, since the common usage of argv[0] is in printing diagnostics. In some cases the filename passed is not the actual filename of the file; for example, many implementations of the login utility use a convention of prefixing a hyphen ( '-' ) to the actual filename, which indicates to the command interpreter being invoked that it is a "login shell".
So it's far from unprecedented that an app might tamper with argv[0] when launching another, and indeed it is far from unprecedented that it should be used as a cheap and crappy substitute for some sort of proper parent-child IPC...
« PrevPage 1 | Page 2 | Page 3Next »

Add Comment