home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.edu:1328 comp.lang.fortran:3150
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!dtix!mimsy!nsisrv!resolve!xrcjd
- From: xrcjd@resolve.gsfc.nasa.gov (Charles J. Divine)
- Newsgroups: comp.edu,comp.lang.fortran
- Subject: Re: Small Language Wanted
- Message-ID: <1992Aug25.185254.28150@nsisrv.gsfc.nasa.gov>
- Date: 25 Aug 92 18:52:54 GMT
- References: <DAVIS.92Aug23010605@pacific.mps.ohio-state.edu> <1992Aug25.034553.2990@linus.mitre.org>
- Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
- Organization: NASA Goddard Space Flight Center, Greenbelt MD
- Lines: 37
- Nntp-Posting-Host: resolve.gsfc.nasa.gov
-
- In article <1992Aug25.034553.2990@linus.mitre.org> crawford@church.mitre.org (Randy Crawford) writes:
- >I don't believe it's possible to write modular FORTRAN code:
- >at least, I've never seen it. And unless FORTRAN 90 eliminates constructs
- >like computed gotos, FORTRAN code will never become structured or modular.
-
- Perhaps we have different understandings of the words structured and
- modular. But the place I worked at for most of the 80s insisted that
- FORTRAN programs be structured and modular. After several years of
- trying to fix code that _was_ a rat's nest, management opted for the
- structured, modular approach. Since this place was hardly cutting
- edge, I assumed they took their ideas from elsewhere. Yes, computed
- gotos are a mess -- but programmers, analysts and management can
- choose to not use them (which is what has happened at many places).
-
- >I think the real advantage that C has over FORTRAN (and Pascal has over C) is
- >especially among undisciplined numerical programmers, where the "better"
- >language allows sufficient expressiveness to solve the problem, yet less
- >opportunity to write bad code. And it's easier for "part-time" programmers to
- >write bad code in FORTRAN than in C.
-
- In many ways FORTRAN is more forgiving than C. For people who are
- writing smaller programs (most of the programs I see here are written
- by scientists and engineers and are quite small), the limitations of
- FORTRAN are no real problem. Learning a new computer language can be
- quite daunting for the part timer. I've written some elegant C
- programs -- but then I make my living at it and I had the time to
- really learn C. I still remember both how much freedom I had when
- I began writing in C -- and how often I made subtle errors that
- produced results at variance with what I wanted.
-
- A colleague compares C to a high performance sports car -- brilliant
- performance, no brakes.
-
-
-
- --
- Chuck Divine
-