You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JavaScript equivalents of some common C# LINQ methods. To help me remember!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Extension methods for calling Dapper asynchronously with a Polly retry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These aren't supposed to be hot takes as most of these are pretty lukewarm and things that for the majority people follow anyway, thought it would be nice to have them all in one place.
Loops vs Functional Array Methods
I like to use loops where possible with functional array methods (not sure what the best terminology for it is but in JS it's stuff like map, reduce, filter and in C# it's Where, Select etc...).
The design of these array methods is to follow very standard functional programming concepts so methods such as a .ForEach where nothing is returned from these iterations always bug me.