Re: C++ programmer and assembly
On Apr 23, 6:54 am, Francis Glassborow <franc...@robinton.demon.co.uk>
wrote:
Maybe, however IMNSHO a C or C++ programmer who uses the preprocessor
that way is a menace. These days we often work on projects that cross
language boundaries. It is hard enough to read code where variables are
selected using a language other than English (at least one widely used
base for coding standards written by a Nordic author -- sorry I do not
have the title to hand -- advocates very strongly that all variables
should be selected using English) without translating all the keywords.
The question has a specific purpose. That purpose is to test
understanding of the preprocessor, and it is not uncommon to make up
such questions to test knowledge. One time, during an interview at a
company in the USA that had $1 trillion of assets under management, I
was asked, "How do you put an elephant in a refridgerator?" .
Arguably, this question is equally senseless. I also recall many
exams where the proposition is inherently preposterous. I would think
that once reaching a certain age (say 15), it would be common to
expect not to dwell too much on the preposterousness of the question.
For example, if someone being tested on an exam for Netwonian physics
where to be posed the question..."
"A hole is drilled from one side of the Earth to the other, straight
through the center. A solid metal ball is dropped in the hole.
Describe the path of the projectile as function of time."
It's a riduculous questions. First, you cannot drill such a hole.
Secondly, the ball might hit the walls. Thirdly, there is too much
heat in the hole. Fourth, there might be a devil in the hole. There
is friction of air. The position of the moon matters. One could go on
and on about all the absurdities surrounding the question.
Most people in tune with the essence of the question will ignore the
absurdity.
And yes, this is a real question provided in physic book prescribed
by real university.
-Le Chaud Lapin-
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]