* Re: Sample code resources / Ada cookbook
2013-03-07 5:11 Sample code resources / Ada cookbook Dufr
@ 2013-03-07 6:20 ` Yannick Duchêne (Hibou57)
2013-03-07 23:41 ` karhof21
2013-03-07 6:28 ` Shark8
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Yannick Duchêne (Hibou57) @ 2013-03-07 6:20 UTC (permalink / raw)
Le Thu, 07 Mar 2013 06:11:59 +0100, Dufr <dufriz@gmail.com> a écrit:
> Hi
>
> I am looking for good resources containing Ada sample code useful for a
> learner. […] looking for is specifically an Ada 'cookbook' containing
> simple Ada programs and code snippets, possibly with comments.
That may be what you want:
http://www.adaic.org/wp-content/uploads/2010/05/Ada-Distilled-24-January-2011-Ada-2005-Version.pdf
Cons: does not cover Ada 2012, but you will quicly learn what
pre/post/predicate are.
--
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sample code resources / Ada cookbook
2013-03-07 5:11 Sample code resources / Ada cookbook Dufr
2013-03-07 6:20 ` Yannick Duchêne (Hibou57)
@ 2013-03-07 6:28 ` Shark8
2013-03-07 7:43 ` Jeffrey Carter
2013-03-14 15:47 ` tonyg
3 siblings, 0 replies; 8+ messages in thread
From: Shark8 @ 2013-03-07 6:28 UTC (permalink / raw)
On Wednesday, March 6, 2013 10:11:59 PM UTC-7, Dufr wrote:
> Hi
>
> I am looking for good resources containing Ada sample code useful for a learner.
>
> Of course, there are many Ada tutorials and manuals around, but what I am looking for is specifically an Ada 'cookbook' containing simple Ada programs and code snippets, possibly with comments.
>
> The closest thing to an Ada cookbook that I found is the excellent Rosetta Code website, which has hundreds of small Ada programs.
>
> Is there any other such printed / online resource containing a similar collection of code samples?
>
> Thanks
I think Rosetta is going to be about the best you're going to do for a 'cookbook' -- but there is something to watch out for there: the small nature of the entries means that [relatively] you won't get a lot of familiarity with managing large systems (packages).
There are some old [Ada95] software libraries/packages/examples on adapower.com. You should also look at some of the libraries in the recent library thread.
Lastly I wrote a sort of introduction/sniplit-example for Ada 2012 [and Streams] over here:
http://blog.projectpolymath.org/ada-2012-tutorial_01/
http://blog.projectpolymath.org/ada-2012-tutorial_02/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sample code resources / Ada cookbook
2013-03-07 5:11 Sample code resources / Ada cookbook Dufr
2013-03-07 6:20 ` Yannick Duchêne (Hibou57)
2013-03-07 6:28 ` Shark8
@ 2013-03-07 7:43 ` Jeffrey Carter
2013-03-14 15:47 ` tonyg
3 siblings, 0 replies; 8+ messages in thread
From: Jeffrey Carter @ 2013-03-07 7:43 UTC (permalink / raw)
On 03/06/2013 10:11 PM, Dufr wrote:
>
> I am looking for good resources containing Ada sample code useful for a learner.
> Of course, there are many Ada tutorials and manuals around, but what I am looking for is specifically an Ada 'cookbook' containing simple Ada programs and code snippets, possibly with comments.
> The closest thing to an Ada cookbook that I found is the excellent Rosetta Code website, which has hundreds of small Ada programs.
> Is there any other such printed / online resource containing a similar collection of code samples?
There are a number of libraries available as source that could be instructive
reading. I recommend the PragmAda Reusable Components available from
pragmada.x10hosting.com
Also available there is the source to the Mine Detector game, a complete,
non-trivial program.
--
Jeff Carter
"People called Romanes, they go the house?"
Monty Python's Life of Brian
79
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Sample code resources / Ada cookbook
2013-03-07 5:11 Sample code resources / Ada cookbook Dufr
` (2 preceding siblings ...)
2013-03-07 7:43 ` Jeffrey Carter
@ 2013-03-14 15:47 ` tonyg
3 siblings, 0 replies; 8+ messages in thread
From: tonyg @ 2013-03-14 15:47 UTC (permalink / raw)
On Thursday, 7 March 2013 05:11:59 UTC, Dufr wrote:
> Hi
>
>
>
> I am looking for good resources containing Ada sample code useful for a learner.
>
> Of course, there are many Ada tutorials and manuals around, but what I am looking for is specifically an Ada 'cookbook' containing simple Ada programs and code snippets, possibly with comments.
>
> The closest thing to an Ada cookbook that I found is the excellent Rosetta Code website, which has hundreds of small Ada programs.
>
> Is there any other such printed / online resource containing a similar collection of code samples?
>
>
>
> Thanks
>
>
>
> Duf
I would point you towards the Ada Denmark website (google it) . And recently magpi an online magazine for the raspberry pi.
^ permalink raw reply [flat|nested] 8+ messages in thread