🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1513

Re: Inversion-of-control and dependency-injection in C

#1513
From: Ross Finlayson
Date: Fri, 13 Nov 2026 13:56
84 lines
5620 bytes
On 11/13/2026 05:50 AM, Ross Finlayson wrote:
> On 11/13/2026 05:27 AM, bartc wrote:
>> On 13/11/2026 13:07, Ross Finlayson wrote:
>>> On 11/13/2026 04:25 AM, Bonita Montero wrote:
>>>> Am 12.11.2026 um 21:11 schrieb Lew Pitcher:
>>>>
>>>>> Pardon my impertinence, but this sounds like a homework problem to me.
>>>> Mabye that's the joke ! ;-)
>>>>
>>>
>>> Humor is appreciated since it's part of bonnehomie and good-will,
>>> it's not a joke. (The "distance learning or distance learning"
>>> was a joke, about "to learn something" vis-a-vis "to learn somebody",
>>> yet that's just using humor instead of stronger insults or the
>>> abject sumbission of the door-mat variety of throwing self under the
>>> bus.)
>>>
>>>
>>> So, say I'm writing a usual sort of server with an idea that
>>> basically it's about "protocols", mostly, so, living in a world
>>> of the 7-layer OSI model, which is a pretty great abstraction and
>>> all the Internet protocols basically live in that world of definition,
>>> while though sometimes the network/transport then the
>>> application/presentation layers gets switched and crossed,
>>> point being there are systems with various accounts of moving parts
>>> and then is for testing in isolation the parts moving and also
>>> the moving of the parts.
>>>
>>>
>>> Then, lots of languages make great use of "reflection", which is
>>> an account of determining from the constructs their structure,
>>> which one may aver that that's what parser & compilers do already,
>>> and so if a C programmer needs reflection then if they're a real
>>> programmer or a real coder then they'd just make their own account
>>> of reflection and model the world in a model of the world, and
>>> C++ it's said is getting reflection added to the giant tower of
>>> what's become of its language and libraries and idiom shoehorned
>>> into the language instead of libraries, or made standard, that
>>> since "run-time-type-identification" for example since something
>>> quite useful like "the variant data-type", sort of an "any: typed",
>>> that "reflection" and "introspection" are how most of the unit-testing
>>> frameworks make for inference about types then for conventions of
>>> signatures to make it easy the "test-fixtures", or otherwise the
>>> accounts of modularity and inversion-of-control and
>>> dependency-injection, then about something like C that it's "just invoke
>>> functions with data and assert(expected == actual)", that for example of
>>> "the many main()'s" just exec'ing those from the test process
>>> whether the tests exit(0) or exit(1), or rather as they die when
>>> assert evaluates false, for example as with regards when running
>>> under a debugger naturally just stopping there live in the debugger.
>>>
>>>
>>> So, among the goals of writing frameworks or tools or tests or
>>> systems, is that it works nicely with all the tools, according
>>> to usually enough just the totally common standards of the toolchain and
>>> the usual object files in the usual object formats on the usual
>>> runtimes.
>> This is not homework. And it's not written in good faith, it is just
>> gobbledygook.
>>
>> I'm surprised so many here can't see it.
>>
>> Here is an interesting challenge: take a list of all these buzzwords,
>> and try to write a set of viable-looking but meaningless paragraphs as
>> Mr RF has done.
>>
>> You don't need to use a program to do it (although it would be most
>> impressive as a C exercise).
>>
>> You win when a human mistakes it for something profound and insightful.
>>
>
> You challenge my good faith, then to hell with you.
>
>


Basically free humans should make a nice new clean-room take on
open source with stable interfaces, before the would-be bot-ocracy
re-writes it as a warren and maze of dark twisty passages all alike.

It might be eaten by a grue, ....

Technical Details
Message-ID: <puecnTkrnouNimr3nZ2dnZfqn_SdnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nrbbs.org!border-3.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> <11d56gl$3ud5q$1@dont-email.me> <11d6vjp$qhu8$1@raubtier-asyl.eternal-september.org> <dsednTD-Fblclmr3nZ2dnZfqnPWdnZ2d@giganews.com> <11d738r$ru7a$1@dont-email.me> <JeydneXpfZECiGr3nZ2dnZfqnPqdnZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nrbbs.org!border-3.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 13 Nov 2026 13:56:32 +0000
Subject: Re: Inversion-of-control and dependency-injection in C
Newsgroups: comp.lang.c
References: <yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com>
 <11d56gl$3ud5q$1@dont-email.me>
 <11d6vjp$qhu8$1@raubtier-asyl.eternal-september.org>
 <dsednTD-Fblclmr3nZ2dnZfqnPWdnZ2d@giganews.com>
 <11d738r$ru7a$1@dont-email.me>
 <JeydneXpfZECiGr3nZ2dnZfqnPqdnZ2d@giganews.com>
From: Ross Finlayson <ross.a.finlayson@gmail.com>
Date: Fri, 13 Nov 2026 05:56:21 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <JeydneXpfZECiGr3nZ2dnZfqnPqdnZ2d@giganews.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <puecnTkrnouNimr3nZ2dnZfqn_SdnZ2d@giganews.com>
Lines: 84
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-21o9SzoU5qkUaCG/VT6/UB1aV3EJV9M9Ll9paoUs8DUE9L4eYDHnyPX7ZCIFSODSOyfYTBc/8fZ9wkt!bVrOEfMt1kdrgXUtZ2o28iccHhD92Rv05d0PQ3aLR3wdnh7WacQJfEmVHXYNx14531wrZvd/ZAdn
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40