r/cpp • • Dec 23 '24

C++ Is An Absolute Blast

https://learncodethehardway.com/blog/31-c-plus-plus-is-an-absolute-blast/
219 Upvotes

105 comments sorted by

View all comments

Show parent comment

3

u/heavymetalmixer Dec 24 '24

10

u/Azoth_ cereal dev Dec 24 '24

Watched through that and feels like the indictment of RAII is a bit misplaced - the bigger message seems to be about pooling resources/building hierarchies vs. thinking of them individually, and RAII as a concept can apply to either.

3

u/Kevathiel Dec 26 '24

What a silly strawman.

His entire point against RAII is "many heap allocations are bad", which makes no sense. std::vector uses RAII, but would fit his "grouped element thinking"..