| Deutsch English Français Italiano |
|
<vl3cmu$2ov5h$6@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Chris Ahlstrom <OFeem1987@teleworm.us>
Newsgroups: comp.os.linux.advocacy
Subject: Re: A New Machine Progresses. The Shakedown Phase.
Date: Wed, 1 Jan 2025 07:33:34 -0500
Organization: None
Lines: 50
Message-ID: <vl3cmu$2ov5h$6@dont-email.me>
References: <181569212b03f59f$16907$3091964$802601b3@news.usenetexpress.com>
<pjf0njl5psk09o5tala9ps5c5d2bgitph3@4ax.com> <vl22iv$2eucj$3@dont-email.me>
<ltjnniF61fhU9@mid.individual.net>
Reply-To: OFeem1987@teleworm.us
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 01 Jan 2025 13:33:35 +0100 (CET)
Injection-Info: dont-email.me; posting-host="047d039ddf3592353b18ed82d24d82cb";
logging-data="2915505"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TFdxkznJ6Ax1hKjVA0eBX"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:ae2ptyyLssyxSqp3WS6L85vsgXo=
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Mutt: The most widely-used MUA
X-Slrn: Why use anything else?
X-Face: 63n<76,LYJQ2m#'5YL#.T95xqyPiG`ffIP70tN+j"(&@6(4l\7uL)2+/-r0)/9SjZ`qw=
Njn mr93Xrerx}aQG-Ap5IHn"xe;`5:pp"$RH>Kx_ngWw%c\+6qSg!q"41n2[.N/;Pu6q8?+Poz~e
A9? $6_R7cm.l!s8]yfv7x+-FYQ|/k
Bytes: 3763
rbowman wrote this post while blinking in Morse code:
> On Tue, 31 Dec 2024 19:34:41 -0500, DFS wrote:
>
>> This is a Feeb classic:
>>
>> "C requires brains and intelligence. C++ doesn't."
>>
>> Who says stupid shit like that?
>
> Obviously not anyone who has tried to use C++. Caveat: my C++ fu is
> severely out of date. It may have gotten better when I wasn't looking.
Both languages require care and diligence, and an intuitive understanding of
their memory models (which overlap a bit).
All languages do.
I've spend decades working with C and C++, and am very comfortable with them.
I still google or read up on various solutions, just to be sure I've got the
best or newest solution in mind.
This is one of the most important benefits of C++:
https://en.cppreference.com/w/cpp/language/raii
Resource Acquisition Is Initialization or RAII, is a C++ programming
technique which binds the life cycle of a resource that must be acquired
before use (allocated heap memory, thread of execution, open socket, open
file, locked mutex, disk space, database connection—anything that exists in
limited supply) to the lifetime of an object.
RAII guarantees that the resource is available to any function that may
access the object (resource availability is a class invariant, eliminating
redundant runtime tests). It also guarantees that all resources are
released when the lifetime of their controlling object ends, in reverse
order of acquisition. Likewise, if resource acquisition fails (the
constructor exits with an exception), all resources acquired by every
fully-constructed member and base subobject are released in reverse order
of initialization. This leverages the core language features (object
lifetime, scope exit, order of initialization and stack unwinding) to
eliminate resource leaks and guarantee exception safety. Another name for
this technique is Scope-Bound Resource Management (SBRM), after the basic
use case where the lifetime of an RAII object ends due to scope exit.
--
As long as there are entrenched social and political distinctions
between sexes, races or classes, there will be forms of science whose
main function is to rationalize and legitimize these distinctions.
-- Elizabeth Fee