From: "Laurent Bercot" <ska-dietlibc@skarnet.org>
To: musl@lists.openwall.com
Subject: Re: fgets() doesn't call fsync() before getting input
Date: Thu, 21 Feb 2019 19:24:57 +0000 [thread overview]
Message-ID: <em97e2811b-610d-4bb5-be89-be93629ffc65@elzian> (raw)
In-Reply-To: <20190221170748.GI23599@brightrain.aerifal.cx>
>I think it's more of an issue for the early examples in C books and
>tutorials, which invariably but inexplicably use a 1970s-era "prompt
>for input" model rather than argv[] or something that would be a lot
>more familiar (and amenable to testing) to modern readers.
Early examples in C books and tutorials, and also in every academic
C course ever. I was taught C 25 years ago with the "prompt for input"
model; later, I gave advanced C classes to students who were taught the
"prompt for input" model 2 years before; and nowadays every newbie C
programming question that pops up in forums invariably comes with the
very same thing.
C courses focusing on good practices are long, long overdue. -_-
--
Laurent
next prev parent reply other threads:[~2019-02-21 19:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-21 15:09 James Larrowe
2019-02-21 15:22 ` Rich Felker
2019-02-21 16:31 ` A. Wilcox
2019-02-21 17:07 ` Rich Felker
2019-02-21 19:24 ` Laurent Bercot [this message]
2019-02-21 20:16 ` James Larrowe
2019-02-21 20:44 ` Rich Felker
2019-02-22 5:04 ` Markus Wichmann
2019-02-25 13:10 ` James Larrowe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=em97e2811b-610d-4bb5-be89-be93629ffc65@elzian \
--to=ska-dietlibc@skarnet.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).