General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
TheEvertw
LaurieWired
comments
Comments by "TheEvertw" (@TheEvertw) on "LaurieWired" channel.
Previous
1
Next
...
All
@Denis-in6ur No, that is not true. `make_unique` has NO overhead compared to `new` and `delete` and prevents people making very serious mistakes in their code. It is in all cases to be preferred over the ancient way of memory allocation.
12
@tripplefives1402 I would not call a programmer who has never heard of new but knows how to use make_unique & make_shared "ignorant", rather, "professional". I haven't used 'new' for a decade. And I will not approve code that contains it.
4
No, it is NOT necessary to know about `new` and `delete.` Professional programmers have for decades been stripping these two aberrations from our code, and we do NOT want fledgling programmers to learn them. The don't need to know, and it would only teach bad habits.
3
@TurboXray Those who know enough to recognize the extremely rare exceptions to this rule, will appreciate the way I formulated it. Because far too many programmers think they are smart enough to be the exception -- only to find out they aren't.
2
@caspianmerlin6434 Fully agree. Which means that video's like this, where you barely get your toe wet in the ocean that is C++, should stay far away from new and delete.
2
The system calls are not only dependent on the processor, but also on the operating system kernel, and potentially even the version of the OS kernel. While mmap is part of the Posix spec, its index in the list of system calls is not. You should have pointed that out.
1
You simply can not give an example of how to allocate memory without explaining the RAII pattern and how modern C++ avoids leaking memory or dangling pointers. This is giving people just enough information to shoot themselves in the foot. If you don't want to take the time to explain these, fine, use make_unique instead. DO NOT teach people C++ by explaining the oldest techniques that we have been trying for decades to erase from our software, and that were the single reason for two other languages to exist (Java & C#). Teach them the modern method.
1
Previous
1
Next
...
All