Tripping on Code

Written by Avinash. You should follow him on Twitter

ToLookup vs. GroupBy

January 31, 2021

GroupBy and ToLookup methods are two methods found as extensions to IEnumerable on the System.Linq namespace seems to perform very similar…

Early Returns

January 12, 2021

How to write more readable code using early returns.

Keyed Collection in .Net

January 08, 2021

KeyedCollections are a feature of .Net that I haven’t seen used often in the wild. In my experience, dictionaries and hash tables are used…

Consequences of Multiple Enumeration of an IEnumerable

January 02, 2021

One of the many warnings that Resharper throws at us is Code Inspection: Possible multiple enumeration of IEnumerable. When I was younger…

Debouncing with React hooks and lodash

December 28, 2020

What is debouncing? The easiest way to explain debouncing is to imagine a text field field that triggers a search (for say movies) as you…