comp.lang.ada
 help / color / mirror / Atom feed
From: Richard Iswara <haujekchifan@gmail.com>
Subject: Why "Hello World" as a first exercise?
Date: Fri, 30 Jul 2021 13:17:46 +0700	[thread overview]
Message-ID: <se05ic$741$1@gioia.aioe.org> (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.

             reply	other threads:[~2021-07-30  6:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30  6:17 Richard Iswara [this message]
2021-07-30  9:57 ` Why "Hello World" as a first exercise? 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
replies disabled

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