| « Prev | Page 1 | Page 2 | Page 3 | Next » |
|
A crude attempt at security?
|
Re: Whom Should I Say is Calling?
2009-01-26 09:02
•
by
Paul Berry
(unregistered)
|
|
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.
|
|
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)
|
Too late... |
|
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)
|
|
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)
|
|
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'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.... |
|
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
|
Would you care to expand on that? |
|
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)
|
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. |
|
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)
|
"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)
|
Hey I learned something! Guess I'm done for the day. |
Problem solved. Just Do What It Takes. |
Re: Whom Should I Say is Calling?
2009-01-26 09:41
•
by
Dave
(unregistered)
|
Hang on, surely you're the one who always tries to defend retarded and non-sensical principles? You know, like all your forum replies. |
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)
|
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
|
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... |
|
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)
|
I'd say it's intrinsically rude to use terrible grammar, myself. |
|
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
|
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
|
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. |
|
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)
|
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
|
http://en.wikipedia.org/wiki/Declension |
Re: Whom Should I Say is Calling?
2009-01-26 10:43
•
by
Beldar the Phantom Replier
(unregistered)
|
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)
|
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. |
|
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)
|
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)
|
|
But that would be INCONCEIVABLE.
captcha - tristique - triple the mystique |
Re: Whom Should I Say is Calling?
2009-01-26 11:03
•
by
jimlangrunner
|
Is Alex really a god? I mean, he's really cool and all that, but a deity? Wow! Addendum (2009-01-26 11:09): 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)
|
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)
|
|
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)
|
|
Application of a real world example.
|
Re: Whom Should I Say is Calling?
2009-01-26 11:11
•
by
The Trumpeter
(unregistered)
|
Make sure you're in impolite company?? |
You're not exactly helping your argument there... |
Re: Whom Should I Say is Calling?
2009-01-26 11:20
•
by
Lolcats
(unregistered)
|
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)
|
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
|
I was about to say "needs more cat" - but I see someone beat me to it. |
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
|
|
Q: Knock, knock.
A: Who's there? Q: Fuck. A: Fuck who? Q: Fuck WHOM! |
Ok, what's wrong with that?
|
Re: Whom Should I Say is Calling?
2009-01-26 11:44
•
by
hikari
|
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. |
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.
Well, ... 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... |
| « Prev | Page 1 | Page 2 | Page 3 | Next » |