Quirky Arrays in C#

I have been coding in C# on and off since the end of 2013. You might be wondering why I mentioned that here though. The reason is that, a large part of that time especially between 2015 to 2021, I was pretty much managing a team, rather than coding full-time. Now, does that make a difference? Of course, it does. Being primarily in a managerial role meant that I had less time to code and more time to do non coding tasks....

January 14, 2021 · 8 min · 1559 words · eakangk
Hashsets in C#

HashSet in C#

Software engineers are generally familiar with Sets as something that they learn in mathematics at university. They may also have learned about HashTables, a data structure that stores keys and values where keys are unique and values are stored at a location in memory that is the Hash of the key. I recently discovered that C# has a datastructure called HashSet. It is a datastructure that stores unique or distinct elements like a Set, but probably named a HashSet as under the hood it is implemented like a HashMap or a HashTable....

January 10, 2021 · 3 min · 634 words · eakangk