Initializing Lists in C#

    Initializing Lists in C#

    Jan 24, 2023
    Categories: C#

    How lists in C# are implemented as a wrapper over C# arrays and why initializing them with a size during construction is a good idea

    Read
    How to create a Database system to handle Unity prefabs

    How to create a Database system to handle Unity prefabs

    Jan 16, 2023
    Categories: Unity

    By leveraging Scriptable Objects we can create a system that allows us to reference our prefab assets easily in code and change them individually or by groups with a single drag and drop

    Read
    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
    Categories: C#

    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
    Categories: C#

    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
    Categories: C#

    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
    Categories: Unity

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

    Read
Follow me: