321
the "good" parts (lemmy.world)
submitted 2 years ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 53 points 2 years ago

C++ the good parts exclusively uses on stack allocation and passing by const reference without ever introducing pointers.

You know this to be true.

[-] [email protected] 40 points 2 years ago

Pointers is a pathway to memory that some consider to be… unnatural

[-] [email protected] 16 points 2 years ago

Because its essential for application use where memory management becomes extremely vital, usually due to the rom or memory to be extremely linited in size. Worrying about memory management (something C++ makes mandatory) is something not all programmers need to care about, but having automated memory mangement is also what causes bloat that comes with modern applications, due to bad programming practices of not caring about it.

[-] [email protected] 11 points 2 years ago

Only Garbage Collectors deal in absolutes

[-] [email protected] 12 points 2 years ago

I tried to get that reference, but MemoryAccessOutOfBounds.

[-] [email protected] 13 points 2 years ago

This is basically C++ in the embedded world, and yes it's the only good C++

[-] [email protected] 2 points 2 years ago

Also Qt basically forces you into this mode... and yea, it is a better way.

[-] [email protected] 4 points 2 years ago

Only integral unsigned numbers, no reference taking at all, no side-effect operators...

this post was submitted on 21 Nov 2023
321 points (94.5% liked)

Programmer Humor

37852 readers
72 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS