From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Why "Hello World" as a first exercise? Date: Fri, 30 Jul 2021 02:57:35 -0700 Organization: A noiseless patient Spider Message-ID: <87wnp85dkg.fsf@nightsong.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="e885916d827ee8791e5dd58b46c5e53c"; logging-data="10436"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19i2dFqMN8lNoziiIn7/znF" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:F04c+wrL6l69V20ikCShTCgRcI4= sha1:4excWR1h/ZqTvwZsVLDJ88giZnQ= Xref: reader02.eternal-september.org comp.lang.ada:62449 List-Id: Richard Iswara writes: > 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? The actual exercise is to (if necessary) get the compiler and tools installed, make the source file, invoke the compiler, and run the executable. Depending on the environment, this can be quite a serious challenge. Going from there to a more complicated program is simple by comparison. I believe the "hello world" meme started with Brian Kernighan's 1970s-era tutorial for the then-new C language, but I could be wrong about that.