|
|
|
|
|
by mothsonasloth
1259 days ago
|
|
As a Java dev who learned C++ at university the hate towards C++ is misplaced. C++ is a no thrills language which lets you have freedom but freedom to also shoot yourself in the foot 100+n ways, but this gives you a good foundation as a developer IMHO. Every time I think about garbage collection in Java, I can appreciate that I am not having to write code to destruct an object or worry about passing references incorrectly. |
|
https://stackoverflow.com/q/147130/1593077
and my particular answer:
https://stackoverflow.com/a/48046118/1593077
in essence, with Modern C++, it is relatively easy to just not produce garbage which needs to be collected :-)