Article View: comp.lang.fortran
Article #596Re: “The end of software secrecy is almost upon
From: Tristan Wibberley
Date: Sun, 06 Dec 2026 04:06
Date: Sun, 06 Dec 2026 04:06
65 lines
4546 bytes
4546 bytes
On 20/10/2026 21:20, Lawrence D’Oliveiro wrote:
> On Tue, 20 Oct 2026 15:06:48 -0500, Lynn McGuire wrote:
>
>> The key to writing any software is lots of commenting.
>
> A key point about comments is they should explain *why* the code is
> doing what it’s doing, not simply repeat *what* it is doing. E.g.
>
> watcher = inotify.Watcher.create()
> watching = {}
> # Monitor immediate containing directories for possibility of files
> # disappearing, assuming those directories will not themselves disappear!
> FILE_EVENTS = \
> { # watch for the file itself changing or disappearing
This is kind of misleading. Really it's "this list of events doesn't
miss a file either changing or disappearing in and of itself" which is
what people really need to know your code is committing to. and it will
put the author in mind of "well... is that actually true" so maybe
they'll improve it to "Assumption test TESTNAMEHERE shows that this list
..." or "design theorem THEOREMNAMEHERE shows that this list ..." and in
the design document "THEOREMNAMEHERE: from the statements in the
warrantied documentation DOCREFERENCEHERE and the results of
TESTNAMEHERE (all taken to be axioms) ..."
and so forth with various improving levels of stability.
> IN_BIT.CLOSE_WRITE,
> IN_BIT.DELETE_SELF,
> IN_BIT.MOVE_SELF,
> IN_BIT.MASK_CREATE, # files mustn’t be the same!
> }
> for key in path_keys :
> path = config[key]
> parent = os.path.dirname(path) # assumes I don’t need to normalize path
> watching[path] = watcher.watch(path, FILE_EVENTS)
> # plus a watch on parent directory for disappeared file coming back:
> # (This won’t work if file was symlinked; do I care?)
first half is good, second half is just autobiographical. assumption
test reference would be better still.
> if parent not in watching :
> # files will typically be in same directory
> watching[parent] = watcher.watch \
> (
> parent,
> {IN_BIT.CREATE, IN_BIT.MOVED_TO, IN_BIT.ONLYDIR}
> )
> #end if
> #end for
--
Tristan Wibberley
The message body is Copyright (C) 2026 Tristan Wibberley except
citations and quotations noted. All Rights Reserved except that you may,
of course, cite it academically giving credit to me, distribute it
verbatim as part of a usenet system or its archives, and use it to
promote my greatness and general superiority without misrepresentation
of my opinions other than my opinion of my greatness and general
superiority which you _may_ misrepresent. You definitely MAY NOT train
any production AI system with it but you may train experimental AI that
will only be used for evaluation of the AI methods it implements.
Technical Details
Message-ID:
<11f2mvb$3jjje$3@dont-email.me>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11amvre$15far$1@dont-email.me> <11b6v90$2nine$3@dont-email.me> <11b87t8$379mv$1@dont-email.me> <11b8b2k$p44i$1@dont-email.me> <11b8bga$6hk$1@panix2.panix.com> <11b8hkq$3bdtq$1@dont-email.me> <11b8ien$3b48o$4@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> Newsgroups: comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers Subject: Re: “The end of software secrecy is almost upon Date: Sun, 6 Dec 2026 04:06:03 +0000 Organization: A noiseless patient Spider Lines: 65 Message-ID: <11f2mvb$3jjje$3@dont-email.me> References: <11amvre$15far$1@dont-email.me> <11b6v90$2nine$3@dont-email.me> <11b87t8$379mv$1@dont-email.me> <11b8b2k$p44i$1@dont-email.me> <11b8bga$6hk$1@panix2.panix.com> <11b8hkq$3bdtq$1@dont-email.me> <11b8ien$3b48o$4@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 06 Dec 2026 04:06:05 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3788398"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3Kg8pyeanAxb7MeIrGZ2V0X1Dn3/TPCvUos4ffU8ATw=="; posting-host="dcb879cf630529286ffe07c4eb0b98ca" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:lQfeIlu8VsUOU592Y0CcXDADCMI= sha256:l0JnH1FNs0sNnu1TytLU0hHYLbf5HtIOVMBwIdNond8= sha1:8EvJebgY3GUrYbPJMa54K7RNzZo= sha256:4LA/SFPxG4/HANLY2G9UNrv5QcVad5VJoNLZryA5JdE= In-Reply-To: <11b8ien$3b48o$4@dont-email.me> Content-Language: en-GB