From owner-freebsd-chat Wed Oct 3 14:57:57 2001 Delivered-To: freebsd-chat@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 6396C37B401 for ; Wed, 3 Oct 2001 14:57:53 -0700 (PDT) Received: from hades.hell.gr (patr530-a035.otenet.gr [212.205.215.35]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f93LvmI06616; Thu, 4 Oct 2001 00:57:48 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f93LXFT30050; Thu, 4 Oct 2001 00:33:15 +0300 (EEST) (envelope-from charon@labs.gr) Date: Thu, 4 Oct 2001 00:33:14 +0300 From: Giorgos Keramidas To: Rahul Siddharthan Cc: freebsd-chat@FreeBSD.ORG Subject: Re: code density vs readability Message-ID: <20011004003314.B8306@hades.hell.gr> References: <20011002213051.A28111@lpt.ens.fr> <20011002214655.A1713@dogma.freebsd-uk.eu.org> <3BBB64CD.7B3A2C86@mindspring.com> <20011003213024.A660@lpt.ens.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011003213024.A660@lpt.ens.fr> User-Agent: Mutt/1.3.22.1i X-GPG-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-URL: http://labs.gr/~charon/ Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Rahul Siddharthan wrote: > Terry Lambert said on Oct 3, 2001 at 12:19:41: > > > > > > Why do some people, especially advanced programmers, hate this feature > > > so much? Isn't it great for catching misspellings before compiling, and > > > for helping the eye locate a target? It also seems good for helping the > > > mind quickly understand the structure of the code. It simply includes > > > more valuable information. I realize it can be overdone, but since you > > > can configure it any way you like, why is it so bad? Why does > > > everything that makes programming easier get labeled a 'crutch' at some > > > point? I mean, LINT could be called a remedy for poor programming > > > skills in the first place, but many accomplished programmers us it, > > > correct? > > > > I think it's because we do things like this: > > > > main(int ac, char *av[]) > > { > > } > > I think if you wrote a lot of math code, with expressions like > > q[i]=pow(cutoff,expon)* > pow(1.0/(SQR(sin(pi*(i+1.0)/L))+SQR(cutoff)),expon/2.0); Well, in that case, I prefer LISP for it's instantly enlightening syntax: (setf (aref q i) (* (expt cutoff expon) (expt (/ 1.0 (+ (sqrt (sin (/ (* pi (+ i 1.0)) L))) (sqrt cutoff))) (/ expon 2.0)))) /me runs to hide. > (or worse) you'd find it more useful to have an editor with syntax > highlighting... I think you mean parenthesis matching here, but I'll let it pass, since most descent editors do have this. VI has it bound to %, Emacs uses visual hints to show matching parentheses/braces/brackets, hell even joe(1) from the ports has it bound to ^G. -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message