9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: Tr: [9fans] off topic: troff book
Date: Wed, 17 Jan 2001 10:24:01 -0500	[thread overview]
Message-ID: <20010117152404.368F3199EF@mail.cse.psu.edu> (raw)

This is getting more off topic by the day.  It is
not worth arguing categorically for or against
literate programming.  

At Bell Labs the programs I write are in the
traditional style Boyd is espousing.  
At Harvard I've used literate programming tools
to write a compiler, numerous small programs in
various languages, and an intro to programming
languages text demonstrating mark-and-sweep and
copying garbage collection in a from-scratch scheme
interpreter.

It is possible to write very clear code that really
doesn't need comments nor "literate" interpretation.
It is possible to use LP to great advantage for making
an unfamiliar programming style immediately accessible
to a new audience (like students in an intro course,
or a professor grading your assignments).
It is also possible to write completely inscrutable
code that literate programming tools alone have
no chance of saving.

The right approach for the job depends critically
on the intended audience and on the existence
of common coding style between you and that audience.
Most programmers cannot just dive into unfamiliar
code and poke around to figure out what's going on.
LP can make the dive a bit less scary.  Like any tool,
though, if used badly it can do more harm than good.

I'd be happy to discuss specifics off-9fans.

Russ


             reply	other threads:[~2001-01-17 15:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-17 15:24 Russ Cox [this message]
2001-01-18  4:32 ` Boyd Roberts
2001-01-19 14:02   ` Douglas A. Gwyn
2001-01-19 14:23     ` Boyd Roberts
  -- strict thread matches above, loose matches on Subject: below --
2001-01-16 19:12 Scott Schwartz
2001-01-16 19:13 ` Boyd Roberts
2001-01-16 18:05 Boyd Roberts
2001-01-17  9:35 ` saroj
2001-01-17 12:12   ` Boyd Roberts

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=20010117152404.368F3199EF@mail.cse.psu.edu \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /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.
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).