Why you should prefer [SerializeField] over public variables

When I published a post about how [SerializeField] attribute works under the hood earlier, I made a claim that public fields can cause potential risks. Experienced programmers usually see this as something obvious, as the Earth goes around the Sun. However, with new or self-taught programmers, the threats of public fields are somewhat intangible. If…

A simple Object Pool for better performance for your games

With game programmers, optimization and performance are interesting things to discuss. We all love to squeeze our hardware as much as possible, to achieve more stunning graphics, more attracting gameplay, with the best performance (damn that’s greedy). Object Pool is one of the common technique of optimizing game performance, and today I’ll show you my…

Implement a simple event and delegate system in C++ with member function pointers

Event and delegate are a great duo. Together they would help you eliminating the headache of scrolling through branch statements, improving your code’s readability. It is so helpful that Java’s core library has an implementation for Observer and Observable. C# even takes a step further, as there is an event keyword baked right into the…