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.
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.