comp.lang.ada
 help / color / mirror / Atom feed
* Re: Newbie (code review)
       [not found] <3cc87b22$0$10098$6e365a64@newsreader02.highway.telekom.at>
@ 2002-04-26  1:31 ` Jim Rogers
  2002-04-28 17:23 ` Michal Nowak
  1 sibling, 0 replies; 2+ messages in thread
From: Jim Rogers @ 2002-04-26  1:31 UTC (permalink / raw)


Ok, I see a few small things I would do differently.

I would place the declaration of procedure "free" in the list
package body, not in the private part of the specification.

I also wonder why you have "withed" Ada.Exceptions in main when
you are not using anything from that package.

Jim Rogers

Holger Zwar wrote:

> hi ada community,
> i'm learning ada (reading j. barnes progr. in ada 2nd ed.) since 2 weeks and
> i like it very much (i'm coding c++ and java at work). now i think it's a
> good time to get some feedback. i'm playing around with a double-linked list
> (i know that there are public good libs and i don't want to reinvent the
> wheel ;-) and i think i'm doing right. but i don't won't to make thoose
> typical beginner mistakes. so what do you (ada profs) think of my code. what
> is bad? what should i avoid?
> thanks in advance
> holger zwar
> 
> 
> 




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

* Re: Newbie (code review)
       [not found] <3cc87b22$0$10098$6e365a64@newsreader02.highway.telekom.at>
  2002-04-26  1:31 ` Newbie (code review) Jim Rogers
@ 2002-04-28 17:23 ` Michal Nowak
  1 sibling, 0 replies; 2+ messages in thread
From: Michal Nowak @ 2002-04-28 17:23 UTC (permalink / raw)


On 2002-04-25 at 23:55 Holger Zwar wrote:

>hi ada community,
>i'm learning ada (reading j. barnes progr. in ada 2nd ed.) since 2 weeks
>and
>i like it very much (i'm coding c++ and java at work). now i think it's a
>good time to get some feedback. i'm playing around with a double-linked
>list
>(i know that there are public good libs and i don't want to reinvent the
>wheel ;-) and i think i'm doing right. but i don't won't to make thoose
>typical beginner mistakes. so what do you (ada profs) think of my code.
>what
>is bad? what should i avoid?
>thanks in advance

Hi,

Although I'm not professional, I think I may advice you looking on
"Ada 95 Quality and Style: Guidelines for Professional Programmers".
You may find some useful informations there (I don't want to say 
your code is bad - in fact it does not look like a newbie code, just
to let you know, that such helpful document exists). It is available on
http://www.adaic.org/standards/ada95.html
in various formats.

Good luck and enjoy,
Mike





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

end of thread, other threads:[~2002-04-28 17:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3cc87b22$0$10098$6e365a64@newsreader02.highway.telekom.at>
2002-04-26  1:31 ` Newbie (code review) Jim Rogers
2002-04-28 17:23 ` Michal Nowak

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