3 ms·
In C++, how do I declare a class? Should I put a ; after declaring it? And when creating a closure, what exactly &, = mean? When should I use std::cout and when
by marcodiego 3y ago
In C++, how do I declare a class? Should I put a ; after declaring it? And when creating a closure, what exactly &, = mean? When should I use std::cout and when not, and why? What exactly is the syntax for inheritance?
Ok, you can learn all that while using the language, but a card deck allows me to review it 5 minutes before sleeping.
- bongodongobob 3y agoI used to just Google stackoverflow, but, I mean, we have ChatGPT now. https://chat.openai.com/share/10801cef-37a5-41cf-a0d3-52cf3827ebd4 https://chat.openai.com/share/10801cef-37a5-41cf-a0d3-52cf38... I don't see why you'd try to memorize a language. We have the Internet. /shrug
- deleted 3y ago[deleted]
- dan-g 3y agoFor me, memorizing things like this is useful because context switching from flow state → searching something → back to flow state takes time and mental energy, and can derail me pretty easily.
- lelanthran 3y agoAnd this is the reason that modern languages tend towards the incomprehensible.