Encapsulation of primitive types and checked operator overloading in C# 11
Jan 10, 2023
Categories: C#
How to encapsulate primitive types to leverage static type safety and overload checked operators to catch bugs faster in development build
ReadThe new keyword in C#
Jan 3, 2023
Categories: C#
Why the new keyword can be bad for your code. A way to follow the DRY principle.
ReadUsing dynamic overloading in C# for a more flexible architecture.
Dec 26, 2022
Categories: C#
How to substitute big switch statements with classes, to keep our code independent and flexible to changes.
ReadExecution order of Awake and onEnable for different scripts in Unity is undefined.
Dec 19, 2022
Categories: Unity
In different scripts OnEnable might run before Awake. A solution to avoid a nasty bug from this undefined behavior.
ReadA guide for better use of enums in C# part 1.
Dec 5, 2022
Categories: C#
A variable should only be doing one thing.
ReadCategories