C ++ is a traditional and ancientProgramming LanguageThere are many dangerous traps. If you don't pay attention to them, it will waste a lot of time and energy to modify and debug.
In order to speed up programming, I think it is necessary to establish some habits or principles for assisting programming:
1. Working together with several principles can minimize errors
2. Some principles are derived from other principles to form a tree-like relationship.
3 different principle trees are not guaranteed to conflict
The Tree of KARABA Philosophy
Everything is at the source.
Except for the allocation of small harmless temporary objects to the stack maintained by the C Runtime Library, other objects have a unique origin.
That is, the root of engines such as ogre
Use pointers rather than entities in containers
The advantage of this is to avoid moving a large amount of data when the object location is re-ordered.
In the gaming world, this is the sea of life. Everything comes from this sea and is also unique to the sea.
When an object is no longer referenced anywhere, it is returned by itself (reference count). This is the resource management subsystem.
Historical Log System
Each login individual is what is seen in the world, which is composed of various components.