comp.lang.ada
 help / color / mirror / Atom feed
* Why "Hello World" as a first exercise?
@ 2021-07-30  6:17 Richard Iswara
  2021-07-30  9:57 ` Paul Rubin
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Richard Iswara @ 2021-07-30  6:17 UTC (permalink / raw)


Why is it most of the courses of introduction to programming or 
programming language use a "Hello World" kind of program as a demo or 
first exercise?
Why not do a proper input loop as a showcase or a first exercise? With 
an input loop procedure you get:
1. How to read and output an input.
2. Show the if-then-else structure.
3. Show the loop structure.
4. Show error messages and how to properly handle it.
5. On Ada in particular you are showing the type system.
6. If it is a subprogram then input loop shows how to do and call the 
subprograms.
And last but not least it teaches and reinforces to the student how to 
think about safety in programming.
So why a useless look at me, ain't I cool "Hello World"?

Sorry I had to vent after an unsatisfying exchange over at arstechnica.

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

end of thread, other threads:[~2021-08-01  2:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30  6:17 Why "Hello World" as a first exercise? Richard Iswara
2021-07-30  9:57 ` Paul Rubin
2021-07-30  9:57 ` AdaMagica
2021-07-30 23:06 ` Randy Brukardt
2021-07-31  1:28   ` Dennis Lee Bieber
2021-08-01  1:16     ` Randy Brukardt
2021-07-31  3:06   ` Richard Iswara
2021-08-01  2:37 ` Keith Thompson

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