Encapsulation of primitive types and checked operator overloading in C# 11

    Encapsulation of primitive types and checked operator overloading in C# 11

    Jan 10, 2023

    How to encapsulate primitive types to leverage static type safety and overload checked operators to catch bugs faster in development build

    Read
    The new keyword in C#

    The new keyword in C#

    Jan 3, 2023

    Why the new keyword can be bad for your code. A way to follow the DRY principle.

    Read
    Using dynamic overloading in C# for a more flexible architecture.

    Using dynamic overloading in C# for a more flexible architecture.

    Dec 26, 2022

    How to substitute big switch statements with classes, to keep our code independent and flexible to changes.

    Read
    Execution order of Awake and onEnable for different scripts in Unity is undefined.

    Execution order of Awake and onEnable for different scripts in Unity is undefined.

    Dec 19, 2022

    In different scripts OnEnable might run before Awake. A solution to avoid a nasty bug from this undefined behavior.

    Read
    A guide for better use of enums in C# part 2.

    A guide for better use of enums in C# part 2.

    Dec 12, 2022

    Mapping data to logic.

    Read
    A guide for better use of enums in C# part 1.

    A guide for better use of enums in C# part 1.

    Dec 5, 2022

    A variable should only be doing one thing.

    Read
Follow me: