From owner-freebsd-questions@FreeBSD.ORG Fri Aug 25 04:01:46 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3875016A4DD for ; Fri, 25 Aug 2006 04:01:46 +0000 (UTC) (envelope-from mjkarki@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 746AC43D66 for ; Fri, 25 Aug 2006 04:01:38 +0000 (GMT) (envelope-from mjkarki@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so768111uge for ; Thu, 24 Aug 2006 21:01:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=dyPzNlpqa31odqYGN8EoDIzmkSXcTPJVnt/+DzkDbfZB0xW1Uz31oGW8929/qcRMioc7M+DU4+zGkTrv49S25jAXWCfzBfwqc+TH77wWrSrZPwpn+qN/lKmOC/ApPJBfq3o5MOiu5IY9w7z434JQhLFB23fR/ssuJhTteEEDR+c= Received: by 10.66.222.9 with SMTP id u9mr1608007ugg; Thu, 24 Aug 2006 21:01:37 -0700 (PDT) Received: by 10.67.101.7 with HTTP; Thu, 24 Aug 2006 21:01:37 -0700 (PDT) Message-ID: <1b15366e0608242101k7791caa6sd8c69e2954ac313a@mail.gmail.com> Date: Fri, 25 Aug 2006 07:01:37 +0300 From: "Matti J. Karki" Sender: mjkarki@gmail.com To: "FreeBSD Questions" In-Reply-To: <332C8C2B-21CD-4461-9C6A-325CB3D487A0@HiWAAY.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7.0.1.0.2.20060824145822.0194fc10@broadpark.no> <1b15366e0608240618j62d41ad3j537f095b2e566ed5@mail.gmail.com> <7.0.1.0.2.20060824192439.02386de8@broadpark.no> <1b15366e0608241500j5f1b4662p9a0d9cd811de841f@mail.gmail.com> <332C8C2B-21CD-4461-9C6A-325CB3D487A0@HiWAAY.net> X-Google-Sender-Auth: c16f5da0a132688a Cc: Subject: Re: Code beautifiers, anyone? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 04:01:46 -0000 On 8/25/06, David Kelly wrote: > > On Aug 24, 2006, at 5:00 PM, Matti J. Karki wrote: > > > On 8/24/06, Kyrre Nyg=E5rd wrote: > >> > >> Perhaps you could share with us whatever scripts you've written? > >> > > > > Totally forgot to include the actual intendation script. > > I'm just a bit confused about the fascination with scripts for cleaning > up code. Is it the desire to clean up more than just C? > Yes. I know, that this is reinventing the wheel. Also, home-made scripts tend to be less reliable compared to dedicated tools. But I have to deal with C, C++, Java, Visual Basic and XML files and also some pretty obscure internal data files. With my own scripts I have total control over the style. I use scripting quite a lot to help me with my work and in addition to readability or style, I also use scripts for generating documentation and even to generate pieces of the final files from other data sources. So, in my case, I just have found out that instead of using bunch of ready-made tools and spending time tweaking the settings and learning to run them, I reach my goal faster and with desired results by doing things myself. -Matti