comp.lang.ada
 help / color / mirror / Atom feed
* Re: Example Programs
  1998-12-08  0:00 Example Programs Nobody
                   ` (2 preceding siblings ...)
  1998-12-08  0:00 ` David Botton
@ 1998-12-08  0:00 ` Marin David Condic
  1998-12-09  0:00 ` Matthew Heaney
  1998-12-09  0:00 ` John English
  5 siblings, 0 replies; 7+ messages in thread
From: Marin David Condic @ 1998-12-08  0:00 UTC (permalink / raw)


Nobody wrote:
> 
> Hello,
> I am currently working through Barnes, Programming in Ada, 4th edition . It
> seems to contain lots of code 'fragments' and not many full, working and
> commented programs that I can type in and modify. I find this a helpful way
> of learning languages.
> 
<snip>
One thing you might find helpful in learning a language is simply to set
yourself a goal of implementing some non-trivial program in that
language. Pick a program that you know how to solve and try coding it in
Ada. Keep the ARM handy and any texts you have available for reference.
By the time you get your program up and running you will have been
forced to look up the rules for enough constructs that you will have
built up a working knowledge of the language.

You might also go looking for the Public Ada Library - I don't have the
URL handy, but I'm sure you can find it via Alta Vista.

-- 
Marin D. Condic
Real Time & Embedded Systems, Propulsion Systems Analysis
United Technologies, Pratt & Whitney, Large Military Engines
M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600
Ph: 561.796.8997         Fx: 561.796.4669

"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all progress
depends on the unreasonable man."

        --  G.B. Shaw




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Example Programs
@ 1998-12-08  0:00 Nobody
  1998-12-08  0:00 ` BSCrawford
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Nobody @ 1998-12-08  0:00 UTC (permalink / raw)


Hello,
I am currently working through Barnes, Programming in Ada, 4th edition . It
seems to contain lots of code 'fragments' and not many full, working and
commented programs that I can type in and modify. I find this a helpful way
of learning languages.

 Does anyone know if there are any examples available on the web ( linked
list examples, 'mini databases' illustrating file I/O, small text based
adventure games etc). I have looked at the lovelace tutorial and the
programs there are too trivial for my purposes (Hello world etc). I have
been able to find little else.

--
Regards

Matthew Tyler

tylerm@logica.com

The opinions expressed here are my own and not necessarily those of Logica.






^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Example Programs
  1998-12-08  0:00 Example Programs Nobody
  1998-12-08  0:00 ` BSCrawford
@ 1998-12-08  0:00 ` David C. Hoos
  1998-12-08  0:00 ` David Botton
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: David C. Hoos @ 1998-12-08  0:00 UTC (permalink / raw)



Nobody wrote in message <74j2m0$3ku@romeo.logica.co.uk>...
<snip>
> Does anyone know if there are any examples available on the web ( linked
>list examples, 'mini databases' illustrating file I/O, small text based
>adventure games etc). I have looked at the lovelace tutorial and the
>programs there are too trivial for my purposes (Hello world etc). I have
>been able to find little else.
>
My FTP site has a "mini database" program at
ftp://ftp.ada95.com/pub/pet_store/

David C. Hoos, Sr.









^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Example Programs
  1998-12-08  0:00 Example Programs Nobody
@ 1998-12-08  0:00 ` BSCrawford
  1998-12-08  0:00 ` David C. Hoos
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: BSCrawford @ 1998-12-08  0:00 UTC (permalink / raw)



Mathew writes:

> Does anyone know if there are any examples available on the web ( linked
>list examples, 'mini databases' illustrating file I/O, small text based
>adventure games etc).

Both of Mike Feldman's books contain complete, working examples. 
His second volume (on data structures) includes, for example, robust 
linked list programs. I believe all of his example programs are also 
available on the net. Suggest you try:

     http://www.acm.org/sigada/education 

Bard Crawford
Stage Harbor Software






^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Example Programs
  1998-12-08  0:00 Example Programs Nobody
  1998-12-08  0:00 ` BSCrawford
  1998-12-08  0:00 ` David C. Hoos
@ 1998-12-08  0:00 ` David Botton
  1998-12-08  0:00 ` Marin David Condic
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: David Botton @ 1998-12-08  0:00 UTC (permalink / raw)


Check out the program Small at the end of the love lace tutorial. Also check
The Ada Source Code Treasury at http://www.botton.com/ada (it's new and being
expanded quickly)

David Botton

Matthew Tyler Wrote:

>  Does anyone know if there are any examples available on the web ( linked
> list examples, 'mini databases' illustrating file I/O, small text based
> adventure games etc). I have looked at the lovelace tutorial and the
> programs there are too trivial for my purposes (Hello world etc). I have
> been able to find little else.
>
> --
> Regards
>
> Matthew Tyler
>
> tylerm@logica.com
>
> The opinions expressed here are my own and not necessarily those of Logica.







^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Example Programs
  1998-12-08  0:00 Example Programs Nobody
                   ` (3 preceding siblings ...)
  1998-12-08  0:00 ` Marin David Condic
@ 1998-12-09  0:00 ` Matthew Heaney
  1998-12-09  0:00 ` John English
  5 siblings, 0 replies; 7+ messages in thread
From: Matthew Heaney @ 1998-12-09  0:00 UTC (permalink / raw)


"Nobody" <nobody@logica.com> writes:

> Hello,
> I am currently working through Barnes, Programming in Ada, 4th edition . It
> seems to contain lots of code 'fragments' and not many full, working and
> commented programs that I can type in and modify. I find this a helpful way
> of learning languages.
> 
>  Does anyone know if there are any examples available on the web ( linked
> list examples, 'mini databases' illustrating file I/O, small text based
> adventure games etc). I have looked at the lovelace tutorial and the
> programs there are too trivial for my purposes (Hello world etc). I have
> been able to find little else.
> 
> --
> Regards
> 
> Matthew Tyler
> 
> tylerm@logica.com
> 
> The opinions expressed here are my own and not necessarily those of
> Logica.

The new version of his book Programming in Ada95, 2nd ed (just came out
a few weeks ago) does indeed come with full examples.  Is that book
published by Addison-Wesley?  Check the publisher's web-site to see if
the examples are posted there.

In the mean time, I've posted lots of Ada code at the Ada patterns list
archives.  

<http://www.acm.org/archives/patterns.html>

I've been converting the examples in Design Patterns from C++ to Ada95.
Perhaps you can find some examples there.

Matt


















^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Example Programs
  1998-12-08  0:00 Example Programs Nobody
                   ` (4 preceding siblings ...)
  1998-12-09  0:00 ` Matthew Heaney
@ 1998-12-09  0:00 ` John English
  5 siblings, 0 replies; 7+ messages in thread
From: John English @ 1998-12-09  0:00 UTC (permalink / raw)


Nobody (nobody@logica.com) wrote:
: Hello,
: I am currently working through Barnes, Programming in Ada, 4th edition . It
: seems to contain lots of code 'fragments' and not many full, working and
: commented programs that I can type in and modify. I find this a helpful way
: of learning languages.

:  Does anyone know if there are any examples available on the web ( linked
: list examples, 'mini databases' illustrating file I/O, small text based
: adventure games etc). I have looked at the lovelace tutorial and the
: programs there are too trivial for my purposes (Hello world etc). I have
: been able to find little else.

The examples from my book are available from the book's website
(http://www.it.bton.ac.uk/staff/je/adacraft/) and include linked
lists, referencce-counted pointers, an appointments diary, an
object-oriented calculator and a spreadsheet. Not many comments
though -- you're supposed to buy the book for a blow-by-blow
account!

-----------------------------------------------------------------
 John English              | mailto:je@brighton.ac.uk
 Senior Lecturer           | http://www.it.bton.ac.uk/staff/je
 Dept. of Computing        | ** NON-PROFIT CD FOR CS STUDENTS **
 University of Brighton    |    -- see http://burks.bton.ac.uk
-----------------------------------------------------------------




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1998-12-09  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-08  0:00 Example Programs Nobody
1998-12-08  0:00 ` BSCrawford
1998-12-08  0:00 ` David C. Hoos
1998-12-08  0:00 ` David Botton
1998-12-08  0:00 ` Marin David Condic
1998-12-09  0:00 ` Matthew Heaney
1998-12-09  0:00 ` John English

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