News for hackers. Stuff that matters.
Re:C++ Is the New Python by markus_zhang on Wednesday July 14, 2021 @02:23PM (#27836480)
I'm on the same line. I'd love to see a book focused on practical C++/11/17 with non trivial projects. Effective Modern C++ explains a lot of things, but concrete examples are a lot better.

Some projects in mind:

C++/SFML/SDL2 game programming using modern C++

Interpreter/compiler construction in modern C++

Explains how to implement things in modern C++ (e.g.unique_ptr) without modern C++ (maybe just use C)

Re:C++ Is the New Python by eatonphil on Wednesday July 14, 2021 @02:33PM (#27836623)
Yes, just talking about the language isn't enough.

Solving somewhat complex problems with standard data structures (maps, trees, hashtables, etc.) and doing it in the modern, efficient way is the kind of thing I'm really looking for.

In Python it's easy (which isn't to say everything should use Python) because you don't have to do anything but use the builtin datastructures and solve your problem.

Maybe modern C++ works the same way but if it does, I still need someone to show it since that isn't how it used to be (to my knowledge).

Re:C++ Is the New Python by markus_zhang on Wednesday July 14, 2021 @02:48PM (#27836810)
Yeah the thing is I don't know if there is any _good_ small-medium modern C++ code base to read.

Eventually I just gave up and use raw pointers. My theory is that since people don't care about JVM not returning memory to system, they should also not care a bout a few MBs of memory leak in my small game.