The Life of a Programmer

Search
https://pixabay.com/photos/dices-given-lyrics-cube-lucky-5006408/

An exponential probability queue

An implementation of a discrete item probability queue in C#. I wrote this to implement rarity based distribution of items in my game Rabanaz.

Why switch is better than if-else

In Ben’s post, he questions whether switch statements are cleaner than if-else chains. I contend they are, because they better express the semantics of the