From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,769bc7b1925998af X-Google-Attributes: gid1164f8,public From: Stuart Brook Subject: Re: Y2038 problems (Re: RT-11/TSX-PLUS Year 2000 Compliant Date: 1998/10/18 Message-ID: <362A0E86.2ABD@concentric.net>#1/1 X-Deja-AN: 402504154 Content-Transfer-Encoding: 7bit References: <3613A881.ED0E72FC@idirect.com> <708q5s$pho$1@andros.cygnus.com> <70aors$ejo$2@info.cs.uofs.edu> <70b5dm$q0v$1@andros.cygnus.com> <36294928.23E6@concentric.net> <3629CE1D.15FB7483@dial.pipex.com> Content-Type: text/plain; charset=us-ascii Organization: Concentric Internet Services Mime-Version: 1.0 Reply-To: sbrook@concentric.net Newsgroups: comp.sys.dec Chris wrote: > > Stuart Brook wrote: > > > > > > > > In general, I've found it is very EASY to write APALLING code in C. > > > > But that's about attitude and self displine, or are we helpless and not > responsible for our actions ?. The fact that a tool is very powerfull > and flexible doesn't mean that the tool itself is at fault. It does mean > though that you have to be responsible in it's use. You can't blame or > ban the tool because some people misuse it. > > I guess it comes down to whether you think prevention is better than > cure - prevention in this case being better programmmer training and > cure being restrictive, retentive languages. > > > Other languages do tend to enforce some kind of structure on you (Yes, > > even FORTRAN's GO TO!) that makes it more difficult to write bad code. > > > > Sorry, absolute rubbish - remember the old saying ? - a bad programmer > will write Fortran (or worse still, Basic) in any language. Once again, > better education is the key. > > Define the problem and data structures first, and the code almost writes > itself. Usually works 100% first time as well. > > Rgrds, Chris ----- You haven't disagreed really with the point I was making ... It is a matter of using the correct tool for the job. And I would suggest that a lot of programmers proficient in other languages can write garbage C. No ... that's not a fault of the language per se. One of the goals of a high level language is to eliminate the dogs dinners that people made in writing machine code or assembler. C is NOT a high level language. It is an intermediate level language that is being pressed into service as a high level language. This creates a dangerous situation when it is used inappropriately. I've recently worked on a system involving databases, and was written rather inappropriately in FORTRAN. It really did require a language better able to handle data structures. C is NOT the panacea tool that it is cracked up to be. Stuart