C++ tip 4: Use const whenever possible

C++ tip 4: Use const whenever possible

What does *const* mean? it simply informs the compiler and other programmers that a variable should not be modified. Reading Efficient C++, I came across a nice tip that I have been trying to implement in my game engine: Use const whenever possible.

C++ tip 3: Always initialize C++ objects before you use them.

C++ tip 3: Always initialize C++ objects before you use them.

It turns out that in C++, it is a good idea to always initialize objects of built-in type, because C++ only sometimes initializes them itself. Read on to learn more.

C++ tip 2: Avoid using: "using namespace std"

C++ tip 2: Avoid using: "using namespace std"

Namespaces in C++ offers a mechanism for expressing that some declarations belong together and their names shouldn’t clash with other names. Instead of using the using-directive you should make it a habit of doing the following:

C++ tip 1: How to use Virtual destructors

C++ tip 1: How to use Virtual destructors

If you have a base class which has methods that will be modified by derived classes, then those methods are normally declared as virtual methods. If that is the case, then make sure that the destructor is declared as a virtual method.

I want to be a game engine developer. Do I need to learn assembly programming?

Developing a game engine requires you to implement several algorithms such as stacks, queues, binary search trees, heaps, etc.