🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #186658

Re: Usenet Archive Update (news.blueworldhosting.com)

#186658
From: Colin Macleod
Date: Thu, 04 Sep 2025 09:17
33 lines
3892 bytes
Colin Macleod <user7@newsgrouper.org.invalid> posted:
> 
> The other points raised are bogus, except for the one about "magic numbers"
> which I will address in time, but that's just bad style, not a bug or
> vulnerability.

Actually point 18 of the Code Quality Review is not entirely bogus, though
it's not expressed clearly.  For some conditions which are implemented by
calling a command, I have:
    if [condition] { .... }
and sometimes I have:
    if {[condition]} { .... }
As long as condition here is a command that returns a boolean value,
these have the same effect but the second is slightly more efficient.
If condition is something which can return a more complex value, these
can behave differently as the first will undergo an extra round of
substitution.  I don't believe my code ever does that, but standardising
on the second form would make sense.

Also point 19 (potential memory leaks in use of thread-shared variables)
is theoretically a problem, but this is just for caching Face and X-Face
images, which are quite small and so few posters use them that it's not
a real concern.

I want to thank Billy G. for taking the initiative to run my code through
github co-pilot, it has been a useful exercise. 😀

-- 
Colin Macleod ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ https://cmacleod.me.uk

FEED    FEED    FEED    FEED    FEED    FEED    FEED    FEED    
GAZA    GAZA    GAZA    GAZA    GAZA    GAZA    GAZA    GAZA    
NOW!    NOW!    NOW!    NOW!    NOW!    NOW!    NOW!    NOW!
Technical Details
Message-ID: <1756977458-7@newsgrouper.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srv.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
References: <10935n7$2dgi$1@nnrp.usenet.blueworldhosting.com> <1094go5$1i5n$1@nnrp.usenet.blueworldhosting.com> <1094j0l$e1p$1@nnrp.usenet.blueworldhosting.com> <1756752601-7@newsgrouper.org> <e98ca867f405baa9d472682a10b9b166c2c64124@usenet.pugleaf.net> <1756805683-7@newsgrouper.org> <b099d1dd4bf47af665b072f4473755065d2142b4@usenet.pugleaf.net> <1756832848-7@newsgrouper.org> <f292bfda7962cd9b44539bf37cffa16558f63f22@usenet.pugleaf.net> <1756930179-7@newsgrouper.org>

Show Full Headers
Complete Article Headers
Message-ID: <1756977458-7@newsgrouper.org>
Subject: Re: Usenet Archive Update (news.blueworldhosting.com)
Date: Thu, 04 Sep 2025 09:17:38 GMT
From: Colin Macleod <user7@newsgrouper.org.invalid>
References: <10935n7$2dgi$1@nnrp.usenet.blueworldhosting.com> <1094go5$1i5n$1@nnrp.usenet.blueworldhosting.com> <1094j0l$e1p$1@nnrp.usenet.blueworldhosting.com> <1756752601-7@newsgrouper.org> <e98ca867f405baa9d472682a10b9b166c2c64124@usenet.pugleaf.net> <1756805683-7@newsgrouper.org> <b099d1dd4bf47af665b072f4473755065d2142b4@usenet.pugleaf.net> <1756832848-7@newsgrouper.org> <f292bfda7962cd9b44539bf37cffa16558f63f22@usenet.pugleaf.net> <1756930179-7@newsgrouper.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srv.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
Newsgroups: alt.free.newsservers
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user7
Injection-Date: Thu, 04 Sep 2025 09:17:38 GMT
User-Agent: Newsgrouper/0.8.1
Organisation: shmorganisation
X-Face: ;>4')~8UD=d.R[\.@A;)N{u_j#_=cmLx$}bIc4.3By~hf[q~|cf59?%bLtS)G@w#32G1%7y
 kz`PF}nwv'neqs,&gJm|V!,Xuekf[YIYQB7[Px"t#|rqb20(<F+y~
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAWlBMVEUOqj99lWv/gSb8+vzH
 yfDKcKfawMf/wXL/xwX/0DL/4MgAnuf////woTuJAg9haNWbJVrmDRbf8/wXqt0wOcfWPknT
 or8xStFls+AyPs/XiXvV447V5/JsPbGdJXGAAAAByElEQVRIie2V0XqDIAyFqaGoaKWztSDi
 +7/mkkoVFLbuonfLTeUzP+ckNMjaPwb7Bz4CcB+uh/eA0YdWSvE3mBW4Y4zKvW+JG6XGu+p/
 BYJnMHrkwVrYYbDyB6AFNap1Ie3XMwaZB1oEXnWLAXPtQEikEgNmBWh7C6SDTCGzwN0DmD+I
 l7WiKErIAHoBRNcF1iURGaC5EQDXrgt9EyFTANwaQ7+PrrPRRnKTSAEocN39ScqigDwg9gJP
 QOYBG1fwDrB3lLPU5wC4FJcU4JqGJy1Bpku8aWggjkXLzDngudE8HNtaro7iefDndvBEjsBx
 x40xIcCXEtDT9SpiR1YprTXNcQh4Rxjn+bxNt+NK08yPd7ooAgB7ZPyjQGIxDc9sjamGrqK+
 DwCz9OgZj5kIcI8zbq3nk0jMQyCAG5+RwJjnWRm79SgAACsIbiUiZoJEj8dctkdAMLYJEPFA
 AUFbTEVqpuHEWPoSg7qq4QigwJTMb8uqSl0zWQFZVXW49oBj7JQzFAm8AHSUvrjRUGzVAxNj
 yW8D5tfxiw0Qbj9mUqKfejdLmyWsYon6FVV1zA/b6uNUbVGXB6PrSfdi8gqlFygnmajr89/p
 b4k/bLhxPQ+xAAAAAElFTkSuQmCC