Fancybit's c ++ principle forest

Source: Internet
Author: User

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.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.