From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3005 invoked from network); 5 Mar 2021 14:14:33 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 5 Mar 2021 14:14:33 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id DFE609CA6F; Sat, 6 Mar 2021 00:14:27 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 53FCE9CA68; Sat, 6 Mar 2021 00:13:56 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id C95AC9CA68; Sat, 6 Mar 2021 00:13:51 +1000 (AEST) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) by minnie.tuhs.org (Postfix) with ESMTPS id CC70C9CA67 for ; Sat, 6 Mar 2021 00:13:50 +1000 (AEST) Received: from kent.sdaoden.eu (unknown [10.5.0.1]) by sdaoden.eu (Postfix) with ESMTP id BCA8816056; Fri, 5 Mar 2021 15:13:48 +0100 (CET) Received: by kent.sdaoden.eu (Postfix, from userid 1000) id 297E8FC1E; Fri, 5 Mar 2021 15:13:48 +0100 (CET) Date: Fri, 05 Mar 2021 15:13:48 +0100 From: Steffen Nurpmeso To: Greg 'groggy' Lehey Message-ID: <20210305141348.DIpGG%steffen@sdaoden.eu> In-Reply-To: <20210304221250.GD6303@eureka.lemis.com> References: <20210304212459.GA6303@eureka.lemis.com> <20210304212917.GB6303@eureka.lemis.com> <20210304221250.GD6303@eureka.lemis.com> Mail-Followup-To: Greg 'groggy' Lehey , Andy Kosela , TUHS main list User-Agent: s-nail v14.9.22-99-g733424fe OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. Subject: Re: [TUHS] tabs vs spaces - entab, detab X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Greg 'groggy' Lehey wrote in <20210304221250.GD6303@eureka.lemis.com>: |On Thursday, 4 March 2021 at 23:08:53 +0100, Andy Kosela wrote: |> |> From Linux kernel coding style doc: |> "Tabs are 8 characters, and thus indentations are also 8 characters. |> There are heretic movements that try to make indentations 4 (or even |> 2!) characters deep, and that is akin to trying to define the value of |> PI to be 3." | |:-) I for one happily left tabulators behind. But for make files. The reason to use tab was file size for one, and that each editor could be used interchangeably to work easily (backspace stepping a real level, for example), and the reason for tab/8 was that the files looked the same everywhere, on the printer, on the terminal via cat(1), less(1), etc., so playing with vim(1)s tabstop etc. setting was a fruitless dead-end. On the 80 columns that i use, that i happily use, i just read wireguard-tools source code (i am in the process of becoming a hundred percent Wireguard fan, someone sat down and did something really great i think) and even though it fits my screen, it is just terrible to see lines that long (the kernel code fits 80, yay, not that i understand where all the work happens), tabulators just cause crowding on the right, and then .. that cannot be right. Even though my coding style is easy not like that Linux kernel code where function call arguments are then aligned under the ( +1, which ... no! Well. I switched to spaces when working for free. :) But, not important. A real change to my coding style came when i looked around Plan9 source code, the pragmatism to simply not use spaces in language constructs aka statements at all, for example "if(a){" instead of "if(a) {" or "if (a) {", and let alone "if (a)\nALIGN{\nALIGN" and whatever else. I like that. You know, FreeBSD is thinking about using that clang format thing in commit hooks (and maybe many even use the clangd "live" ctags), and that was written in Acme or even Sam. And the manuals were great and the C dialect was, too. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)