Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: A Brief Loo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 34 Topic 3855 of 4284
Post > Topic >>

Re: A Brief Look at History

by Elizabeth D Rather <erather@[EMAIL PROTECTED] > Mar 12, 2008 at 07:17 AM

Jonah Thomas wrote:
> m-coughlin <m-coughlin@[EMAIL PROTECTED]
> wrote:
> 
>>    I noticed where there was some programming in Forth being
>> done at the Harvard Smithsonian Astrophysical Observatory, down
>> the street from where I lived, across town from where John Doty
>> worked. When I learned enough about Forth to maybe get a job at
>> the Astrophysical Observatory, I discovered they had fired the
>> Forth programmers, trashed their code, and were writing
>> astronomical imaging programs in some other language instead. I
>> investigated further and was told the programmers could not read
>> their own code and this was only because they were using Forth.
>> I knew that this is not true and it was because of poor
>> commenting style and poor management. I convinced no one. I have
>> not been able to convince any Forth programmer that Forth's
>> commenting style needs to be improved either. 

Funny, SAO is still using Forth, for some space projects.  They're good 
customers of FORTH, Inc., and we hear from them from time to time.  I 
posted a press release from them a year or so ago.

> I have heard this same exact story with the same wording from a large
> handful of different places, usually from the late 1980's but sometimes
> the early 1990's. An NRAO shop in suburban Maryland. A privately-owned
> cor****ation in Boston. A privately-owned company in Oregon. A large
> publicly-owned cor****ation again in Boston. "We fired the Forth
> programmers and quit using Forth because they couldn't read their own
> code."

NRAO never had a "shop" in Maryland AFAIK.  NASA, maybe?  But I know of 
several groups in NASA that are still using Forth.

We do, sadly, hear of companies that drop it.  In most cases, it's 
because management felt it wasn't "mainstream" and feared being unable 
to hire programmers cheap. We mostly hear from the programmers, of 
course, who are distraught (and sometimes quit).  At least *they* didn't 
think they couldn't read their own code!

> I don't know now whether there was some problem with Forth commenting or
> whether it was just the custom -- what managers told each other to say
> when they fired the Forth programmers. How did the managers test whether
> the Forth programmers could read their own code? Do they use the same
> tests to decide whether individual C++ programmers can read their own
> code?

I think  lot of these stories are either apocryphal or excuses made up 
by management who felt uncomfortable with a minority language.

> I did a google search on  can't|couldn't read his|their own code.
> 
> C/C++
> http://forums.civfanatics.com/archive/index.php/t-166431.html
> 
> Java IDEs
> http://forum.java.sun.com/thread.jspa?threadID=158369&messageID=467108
> 
> various, from comp.lang.misc
>
http://groups.google.com/group/comp.lang.misc/browse_thread/thread/984759db724234d1/4007325902c53b0e%234007325902c53b0e
> ----
>>>                        Scheme seems to share much of its syntax with
>>> Lisp, which tends to be a "write only" language.
>> Hardly true of Scheme/Lisp.  The only language that might be truly
>> said to possess this characteristic is APL, and only because of its
>> infernal character set.  (Because of this, APL is the one language
>> I've encountered in my life that I've never _wanted_ to master.)
>> Substituting each APL operator with a descriptive name would certainly
>> go a long way towards making it less of a "write-only" language.
> 
> Actually, FORTH is also an extremely write-only language.  I also find
> that Lisp is somewhat write-only when complex programs are programmed
> in a funcational style.
> 
> I suspect that languages are write-only more because they lack names for
> local variables or intermediate results that because they have unusual
> characters representing functions.  I mean, who would want to write
> out "iota" or "rho" every time you wanted an array? :-) :-) 
> ----

Interesting.

....>
> I'll bet if you find a hundred people who've never used Forth but who've
> heard of it, 98 of them will have heard it's unreadable. Probably 5 or
> 10 of them will have heard the story about the Forth programmers who
> couldn't read their own code. This says nothing about how hard it is to
> read Forth code, what commenting styles would help, or how many Forth
> programmers have trouble reading their own code.

Yes, that's the classic response from people who've heard of Forth but 
don't know anything about it.  A lot of this, unfortunately, originated 
in the 80's, when there were many articles in Byte, Dr Dobbs, and other 
places about Forth.  They all included code, and in virtually all cases 
the magazines "edited" the code to "fix" things like removing spaces 
before "punctuation" such as commas, periods, semicolons, etc., "fixing" 
spelling, and other things that rendered the code utterly gibberish.  I 
wrote some of those articles, and screamed loudly, but the mags said 
there was nothing they could do, it was their art dept (code was 
considered "illustration").  Folks can't be blamed for concluding that 
stuff was unreadable, and unfortunately that's the only Forth a lot of 
folks have seen.

>> I have
>> not been able to convince any Forth programmer that Forth's
>> commenting style needs to be improved either. 
> 
> Many Forth programmers have experimented with new commenting styles.
> Where are you continuing to see Forth code that's badly commented? How
> many lines of poorly-commented Forth code have you seen that were
> written since you failed to convince us to comment better?

Some programmers don't like to write comments in code regardless of 
language.  They shouldn't be tolerated: we've spoken of management in 
other contexts, and one of the responsibilities of good management is to 
be sure the team is professional about writing clear, well-commented 
code.  And one of the responsibilities of professional programmers is to 
write that way.

FORTH, Inc. is often called in to help ****t old apps written in Forth 
years ago to new platforms.  So, we get a lot of experience reading code 
written by random other programmers in other Forths over the years. 
Some of it's quite good, some quite awful.  We can always read it, even 
when the effort is painful and the comments deficient.  The likelihood 
that the programmers "couldn't read their own code" is vani****ngly small.

I think that's folklore.

Cheers,
Elizabeth

-- 
==================================================
Elizabeth D. Rather   (US & Canada)   800-55-FORTH
FORTH Inc.                         +1 310-491-3356
5155 W. Rosecrans Ave. #1018  Fax: +1 310-978-9454
Hawthorne, CA 90250
http://www.forth.com

"Forth-based products and Services for real-time
applications since 1973."
==================================================
 




 34 Posts in Topic:
Re: A Brief Look at History
Jonah Thomas <jethomas  2008-03-12 06:56:18 
Re: A Brief Look at History
Elizabeth D Rather <er  2008-03-12 07:17:48 
Re: A Brief Look at History
John Doty <jpd@[EMAIL   2008-03-12 16:24:39 
Re: A Brief Look at History
John Passaniti <nntp@[  2008-03-13 00:05:13 
Re: A Brief Look at History
John Doty <jpd@[EMAIL   2008-03-12 19:28:19 
Re: A Brief Look at History
"Paul E. Bennett&quo  2008-03-13 19:16:12 
Re: A Brief Look at History
John Doty <jpd@[EMAIL   2008-03-13 13:21:24 
Re: A Brief Look at History
"Paul E. Bennett&quo  2008-03-13 21:50:04 
Re: A Brief Look at History
John Doty <jpd@[EMAIL   2008-03-13 16:16:28 
Re: A Brief Look at History
John Passaniti <nntp@[  2008-03-14 05:03:16 
Re: A Brief Look at History
John Doty <jpd@[EMAIL   2008-03-14 06:57:57 
Writing, Coding, and Professionals (was Re: A Brief Look at Hist
m-coughlin <m-coughlin  2008-03-14 19:51:54 
Re: Writing, Coding, and Professionals (was Re: A Brief Look at
Andrew Haley <andrew29  2008-03-15 10:03:17 
Re: Writing, Coding, and Professionals (was Re: A Brief Look at
Jerry Avins <jya@[EMAI  2008-03-15 11:12:47 
Re: Writing, Coding, and Professionals
Guy Macon <http://www.  2008-03-15 18:02:03 
Re: Writing, Coding, and Professionals
Andrew Haley <andrew29  2008-03-17 10:24:55 
Re: Writing, Coding, and Professionals
Guy Macon <http://www.  2008-03-17 22:40:16 
Re: Writing, Coding, and Professionals
anton@[EMAIL PROTECTED]   2008-03-18 11:13:09 
Re: Writing, Coding, and Professionals
stephenXXX@[EMAIL PROTECT  2008-03-18 14:22:55 
Re: Writing, Coding, and Professionals
Elizabeth D Rather <er  2008-03-18 09:47:02 
Re: Writing, Coding, and Professionals
anton@[EMAIL PROTECTED]   2008-03-18 19:39:30 
Re: Writing, Coding, and Professionals
"Paul E. Bennett&quo  2008-03-18 20:41:29 
Re: Writing, Coding, and Professionals
Guy Macon <http://www.  2008-03-19 10:14:57 
Re: Writing, Coding, and Professionals
anton@[EMAIL PROTECTED]   2008-03-19 13:40:38 
Re: A Brief Look at History
"Paul E. Bennett&quo  2008-03-13 19:02:46 
Re: A Brief Look at History
John Doty <jpd@[EMAIL   2008-03-13 13:16:17 
Re: A Brief Look at History
Elizabeth D Rather <er  2008-03-13 13:30:33 
Re: A Brief Look at History
John Doty <jpd@[EMAIL   2008-03-13 14:50:04 
Re: A Brief Look at History
stephenXXX@[EMAIL PROTECT  2008-03-15 17:39:38 
Re: A Brief Look at History
John Doty <jpd@[EMAIL   2008-03-15 12:09:14 
Re: A Brief Look at History
stephenXXX@[EMAIL PROTECT  2008-03-15 19:00:23 
Re: A Brief Look at History
John Doty <jpd@[EMAIL   2008-03-15 13:51:22 
Re: A Brief Look at History
m-coughlin <m-coughlin  2008-03-14 19:00:35 
Re: A Brief Look at History
John Doty <jpd@[EMAIL   2008-03-12 17:18:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 18:38:30 CDT 2008.