Re: Had an interview
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Mon, 05 May 2008 02:14:29 -0400
Robert Adsett wrote:
CBFalconer says...
Robert Adsett wrote:
... snip ...
However, the fact that no one considered that the inputs could be
out of range (and for that matter your reaction to the observation)
is an interesting commentary on how we view this practice we call
programming. We seem to default to the assumption that the input
values to our current problem will be in the range we expect.
So you didn't bother reading my reply?
I had to check back to make sure I had, my apologies for forgetting
it. Your solution does at least limit the range of outputs. It does
leave open the question of whether values other than 1 or 2 are
acceptable inputs.
At least someone is considering other inputs may occur.
No, look again. It accepts all inputs, but only outputs the values
1 and 2. It was:
if (1 == x) x = 2;
else x = 1;
or similar.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
** Posted from http://www.teranews.com **
.
- References:
- Re: Had an interview
- From: Andrey Tarasevich
- Re: Had an interview
- From: Spehro Pefhany
- Re: Had an interview
- From: Robert Adsett
- Re: Had an interview
- From: Andrew Smallshaw
- Re: Had an interview
- From: Robert Adsett
- Re: Had an interview
- From: CBFalconer
- Re: Had an interview
- From: Robert Adsett
- Re: Had an interview
- Prev by Date: Looking for places to get certified in?
- Next by Date: Re: Integer Square Root Algorithm for Processor with MUL, DIV
- Previous by thread: Re: Had an interview
- Next by thread: Re: Had an interview
- Index(es):
Relevant Pages
|
|