Deutsch   English   Français   Italiano  
<vdlitg$3kuh8$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho <Pancho.Jones@proton.me>
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: TeX and Pascal [was Re: The joy of FORTRAN]
Date: Thu, 3 Oct 2024 08:59:44 +0100
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <vdlitg$3kuh8$2@dont-email.me>
References: <pan$96411$d204da43$cc34bb91$1fe98651@linux.rocks>
 <5mqdnZuGq4lgwm_7nZ2dnZfqnPSdnZ2d@earthlink.com>
 <vcub5c$36h63$1@dont-email.me> <1r0e6u9.1tubjrt1kapeluN%snipeco.2@gmail.com>
 <vcuib9$37rge$5@dont-email.me> <vcvuhh$3hroa$2@dont-email.me>
 <llhieuF8ej2U2@mid.individual.net> <20240925083451.00003205@gmail.com>
 <Pascal-20240925164718@ram.dialup.fu-berlin.de>
 <mdd4j63pmo1.fsf_-_@panix5.panix.com>
 <oJ-cnQSrLZDYdGX7nZ2dnZfqnPWdnZ2d@earthlink.com>
 <vdatb6$1l4ch$8@dont-email.me> <vdauah$1lq1u$1@dont-email.me>
 <lltt6uF4fseU4@mid.individual.net> <vdcn1q$1tmdr$5@dont-email.me>
 <vddqoe$264fi$2@dont-email.me> <vdf4le$2cn51$6@dont-email.me>
 <vdh2l1$2p7e2$1@dont-email.me> <vdh3ku$2path$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 03 Oct 2024 09:59:45 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="658cb169164cde10b95de655a514051a";
	logging-data="3832360"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+GZWd5JZ172CYXWzkhMHw4iRoeo/BAL88="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9uJFLD8K3aGaAozuCNjlHuQFS6M=
Content-Language: en-GB
In-Reply-To: <vdh3ku$2path$1@dont-email.me>
Bytes: 3546

On 10/1/24 16:14, The Natural Philosopher wrote:
> On 01/10/2024 15:57, Pancho wrote:
>> In essence just because you can do something clever, doesn't mean you 
>> should.
> 
> That is what I loathed about compscis. As practising software engineers 
> we specialised in 'good clean workmanlike well documented and structured 
>   code'.
> Our job was to get the puter to do its job in the most understandable 
> and maintainable way.
> Not to impress people with the elegance complexity and 
> incomprehensibility of our  REGEX statements.
> 
> If all we had was vi and a C compiler, that's what we used.
> And knowing that
>   p=(x>y?3:2);

Yeah, I remember people criticising this 30 years ago, but programmers 
are used to it now, so it doesn't confuse people.

> produced identical assembler to:
> if (x>y)
>      p=3;
> else
>      p=2;
> there was a strong temptation to use the latter as being sufficiently 
> simple for the time serving amateurs whose failure to complete the 
> project was why we we employed at all...
> 
> We weren't employed to be clever. We were employed to write working 
> code. And document it.
> 

Yes, it is best that code is obvious. Standard design patterns are good 
too. A familiar complex pattern, is much easier to understand than an 
unfamiliar one.,

Documentation can be problematic, in that people modify the code but not 
the comments. I tend to write a header comment block explaining what I 
initially designed a class is for. A story more than a line by line 
explanation. Like you, I also start by writing comments and then I fill 
in the code. That is to help me remember what I'm doing, like notes. 
Sometimes I leave these comments, sometimes I don't.