>>11454471I was going to type out more detailed shit but there's probably too much to fit here to write explain everything needed to write good C++ code. Briefly:
Learn C and assembly, learn how programs are structured at the assembly level, learn how memory is handled, learn CPU architecture and how modern CPU architecture affects application performance (branch prediction, cache misses, etc). Learn data structures and algorithms, learn basic OS operation, learn OOP (classes, inheritance, polymorphism, etc.) and how to use and structure programs with it effectively, learn how compilers and compiler optimizations work.
Learn C++ syntax, learn the underlying C++ abstractions and conventions (rvalues, lvalues, RAII, zero-overhead abstractions, etc.), learn templates and metaprogramming, learn all the shit you shouldn't do but C++ lets you do anyway, learn the STL algorithms, learn to use the STL as much as possible in your own code.
There's a lot more but this is the gist of it. There's books for basically all of this though, just google a bit