Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= Newsgroups: comp.os.vms Subject: Re: Clair Grant on VMS code base Date: Thu, 17 Apr 2025 19:41:55 -0400 Organization: A noiseless patient Spider Lines: 54 Message-ID: References: <67fee5b8$0$708$14726298@news.sunsite.dk> <6800fa70$0$709$14726298@news.sunsite.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 18 Apr 2025 01:41:55 +0200 (CEST) Injection-Info: dont-email.me; posting-host="b5c46b5d7942d36039fbea8ecdfb30ea"; logging-data="1768287"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qS5Of+j4OLyOq9n9G83m3U66Hq0SVNIk=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:yBpWY8oCc9yWNCJTeJEVX9bASvc= Content-Language: en-US In-Reply-To: Bytes: 2709 On 4/17/2025 7:26 PM, Lawrence D'Oliveiro wrote: > On Thu, 17 Apr 2025 08:56:17 -0400, Arne Vajhøj wrote: >> If we discuss what is the "right" answer, then I would actually say 2. >> >> for i := 1 to 10 do writeln(i) >> >> for i := 1 to 10 do >> writeln(i) >> >> for i := 1 to 10 do begin >> writeln(i) >> end; >> >> for i := 1 to 10 do begin >> writeln(i) >> end; >> >> for(i = 1; i <= 10; i++) printf("%d\n", i); >> >> for(i = 1; i <= 10; i++) >> printf("%d\n", i); >> >> for(i = 1; i <= 10; i++) { >> printf("%d\n", i); >> } >> >> for(i = 1; i <= 10; i++) >> { >> printf("%d\n", i); >> } >> >> I would say 2 for all. > > How much difference would such distinctions make in real-world code, > anyway? I suspect not much. Longer compound statements would dominate > shorter ones in the line count. It is all based on averages. If person X write a tiny program and person Y write a the same tiny program, then the non-blank and non-comment line count may vary a lot. But if a team of a 100 developers write an application close to one million lines of code and another team of another 100 developers write the same application, then then the non-blank and non-comment line count will be relative close. Relative deviation decreases when the size increases. Arne