Tag: featured programming

  • Delegates, Lambda Expressions & Closures in C#

    Delegates, Lambda Expressions & Closures in C#

    If you are familiar with programming, you might have heard of a specific paradigm called functional programming. Most modern languages, such as Java and C#, have integrated some functional elements over time. Other, like Scala and Haskell, were built around that very idea of functional programming. This online course will look at some of the functional…

  • Iterators in C#: yield, IEnumerable & IEnumerator

    Iterators in C#: yield, IEnumerable & IEnumerator

    Iterating over lists in C# is often done using for loops. This tutorial shows how the foreach construct can be coupled with the yield statement to create more elegant and safe code.

  • Enum, Flags  and bitwise operators

    Enum, Flags and bitwise operators

    If you’re a game developer chances are you’re familiar with the need to describe different variations of an attribute. Whether it’s the type of an attack (melee, ice,  fire, poison, …) or the state of an enemy AI (idle, alerted, chasing, attacking, resting, …) you can’t escape this. The most naive way of implementing this is…