My stance on conditional compilation is clear: conditional compilation should be restricted to the deepest possible place in the implementation, meaning it’s found as far down in the call stack as possible. This approach ensures uniformity in code flow across various platforms, significantly reducing the likelihood of platform-dependent bugs.
The following things must be taken into account when reading the post:
- The examples are in C# but won’t have any game engine specific code
- The examples will be centered around the data and how the systems ingest. Actual system implementation is omitted or simplified to ease the reading.
- Strategy pattern is known
- The concept of refactoring is known
- Further clean code cleaning and other techniques could be applied to the examples
Hello everyone! Before doing any technical entries on this blog, I’d like to start from the beginning and tell you who am I.
This is the start of a journey for a game developer.