comp.lang.ada
 help / color / mirror / Atom feed
From: Oliver Kleinke <oliver.kleinke@c-01a.de>
Subject: Re: Pretty printing the pretty print.
Date: Sat, 4 Jan 2014 12:13:32 +0100
Date: 2014-01-04T12:13:32+01:00	[thread overview]
Message-ID: <20140104121332.22310cd2@vostro> (raw)
In-Reply-To: ICL6XpEJdYRSFwbW@ada-augusta.demon.co.uk

> A C++ man working for a blue-chip organisation, he was impressed and 
> also opined that Ada "seems to have a sweet syntax".
> 
> During the same conversation he asked me to write some Ada code to 
> perform an exercise question he routinely sets when interviewing 
> programmer candidates. Thinking on the hoof I wrote some code that in 
> hind-sight was not good Ada and certainly not what I would have
> written if I had time to think the matter through. I seemed to fall
> straight into the trap that he had set. But I say "seemed" because as
> soon as he pointed out the error, and we discussed it, it became
> obvious that the trap was a situation that, in Ada, would possibly
> not have compiled and if it had would certainly have had potential
> for raising a constraint error. I refrained from pointing out that it
> could be argued that it was a specification error in that the
> specification did not admit that the difference between two indices
> is not an index, it is an offset.
> 

Do you by chance remember the task?
I coded 4 solutions[1] to the fizzbuzz exercise that is supposedly used
by interviewers a lot.

--
[1] - https://github.com/oliver117/fizzbuzz

  reply	other threads:[~2014-01-04 11:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-25 10:36 Pretty printing the pretty print Mike H
2013-09-25 11:14 ` Georg Bauhaus
2013-09-25 14:27 ` Britt
2013-09-25 14:48   ` Mike H
2013-09-25 15:16     ` gautier_niouzes
2013-09-26  4:30       ` Per Sandberg
2013-09-27 13:25       ` Mike H
2014-01-04 11:13         ` Oliver Kleinke [this message]
2014-01-06 16:37           ` Mike H
2013-09-29 21:38     ` Stephen Leake
2013-09-25 14:47 ` Felix Krause
2013-09-26 18:38 ` Manuel Gomez
2013-09-30 12:20 ` Stefan.Lucks
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox