“hard” to use because we don’t teach resources management properly.
Teach smart pointer before resources management is bad. Smart pointer is just a convenient tool, you need to learn resources management anyway.
I don’t know why closing/returning a resource after use is so hard to understand (I am talking about learning, not convenience). I guess most people don’t know they are retarded. Retarded as in they don’t know they are wasting time, not as in they do not have the ability to understand.
I once taught some undergrads inserting element in linked list. One way linked list. Allowed to use temp variable. Repeated TEN DAYS.
Guys, please stop wasting your own time and others’ time. If you CANT FUCKING REMEMBER, write down on a notebook and revise. If you are NOT WILLING TO REMEMBER, drop out and do something useful. Thanks
飲水教父2022-05-31 14:45:07
Interview 貼士
手一黏便緊(UTC+92022-05-31 14:46:05
Type is reading frame on array of bytes.
And for application programmer who don’t do pointer tricks, address is just a symbol representing some data while pointer is a type that can store symbol. And in fact this is a more accurate viewpoint considering user space address is translated twice to physical address in x86.