9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Tr: [9fans] off topic: troff book
@ 2001-01-16 18:05 Boyd Roberts
  2001-01-17  9:35 ` saroj
  0 siblings, 1 reply; 9+ messages in thread
From: Boyd Roberts @ 2001-01-16 18:05 UTC (permalink / raw)
  To: 9fans

please put the Reply-To: back, please?

From: Boyd Roberts <boyd@planete.net>
To: <saroj@bear.com>
Sent: Tuesday, January 16, 2001 7:04 PM
Subject: Re: [9fans] off topic: troff book


> From: <saroj@bear.com>
> > 
> > Sorry, how many programs written by you can be read from cover to
> > cover and fully understood?
> 
> would you like statistics or would you just prefer for me to
> say _all_ of them?  then again, it depends on the _reader_ too.
> 
> read pop.c in:
> 
>     http://www.planete.net/~boyd/code/mace.bundle
> 
> and get back to me.




^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Tr: [9fans] off topic: troff book
@ 2001-01-16 19:12 Scott Schwartz
  2001-01-16 19:13 ` Boyd Roberts
  0 siblings, 1 reply; 9+ messages in thread
From: Scott Schwartz @ 2001-01-16 19:12 UTC (permalink / raw)
  To: 9fans

| please put the Reply-To: back, please?

Ok, done.



^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Tr: [9fans] off topic: troff book
@ 2001-01-17 15:24 Russ Cox
  2001-01-18  4:32 ` Boyd Roberts
  0 siblings, 1 reply; 9+ messages in thread
From: Russ Cox @ 2001-01-17 15:24 UTC (permalink / raw)
  To: 9fans

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


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

end of thread, other threads:[~2001-01-19 14:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-16 18:05 Tr: [9fans] off topic: troff book Boyd Roberts
2001-01-17  9:35 ` saroj
2001-01-17 12:12   ` Boyd Roberts
2001-01-16 19:12 Scott Schwartz
2001-01-16 19:13 ` Boyd Roberts
2001-01-17 15:24 Russ Cox
2001-01-18  4:32 ` Boyd Roberts
2001-01-19 14:02   ` Douglas A. Gwyn
2001-01-19 14:23     ` Boyd Roberts

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).