home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky alt.msdos.programmer:3054 comp.os.msdos.programmer:11711 comp.sys.ibm.pc.programmer:709 comp.lang.c++:18585 comp.lang.c:19059
- Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer,comp.lang.c++,comp.lang.c
- Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: Newbie Wants Advice on C-Programming
- Message-ID: <1992Dec31.043002.24014@ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: MAXTAL P/L C/- University Computing Centre, Sydney
- References: <1hdpluINN1lv@agate.berkeley.edu> <1992Dec25.070024.15672@grebyn.com> <FISCHER.92Dec30223532@orange.iesd.auc.dk>
- Date: Thu, 31 Dec 1992 04:30:02 GMT
- Lines: 52
-
- In article <FISCHER.92Dec30223532@orange.iesd.auc.dk> fischer@iesd.auc.dk (Lars Peter Fischer) writes:
- >
- >>>>>> "Michael" == Michael Malak (malak@grebyn.com)
- >
- >Michael> 1) It has structured syntactic blocks for constants, types and
- >Michael> variables.
- >
- >Which is not much of an advantage. Look at all the pain Knuth has gone
- >through to work around it.
-
- Could you explain? Seems to me that the simple concept
- of nesting the symbol table so that symbols go out of scope
- at the end of the block is very nice.
-
- >
- >Michael> 2) It has nested procedures.
- >
- >Sound like a neat idea but isn't a big deal in practice. Modules in
- >much better. If you keep your modules (files in C) small, and keep
- >functions local (static) you rarely need nested procedures. Note that
- >Wirth is abandoning the idea, too.
-
- Dont quite agree. Many 'mess-arounds' in C could be avoided
- if nested proceedures were supported. C's failure to provide them
- possibly results from being designed with archaic architectures
- in mind.
-
- Functional decomposition is a valid technique in my opinion.
- So is partitioning the state space with objects. Forcing the programmer
- to use data decomposition because functional decomposition is not
- properly supported is against the spirit of C++ in my opinion.
-
- >
- >Michael> 3) Most importantly, the good structured programming professors
- >Michael> wouldn't be caught dead teaching C (biggotry in my opinion).
- >
- >A professor that believes the notion of structured programming is tied
- >to a specific language should be teaching gardening instead.
- >
- But C cannot be used easily for functional decomposition
- because it doesn't provide proper support for nested functions.
- Structured design may not be tied to a specific language,
- but structured programming in a structured language is certainly
- easier than in a non-structured one. Do you really want to
- write code in the old BASIC (you know, the one with line numbers
- and GOSUB without parameters?)
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-