C# Magical Syntax
Explores C#'s 'magical' syntax patterns like foreach iteration, tuple deconstruction, and collection initialization that rely on convention-based methods.
Explores C#'s 'magical' syntax patterns like foreach iteration, tuple deconstruction, and collection initialization that rely on convention-based methods.
Explains why C# List foreach loops don't lower to array-style while loops, focusing on version safety and performance semantics.
The article argues that JavaScript's forEach method can be a code smell due to performance overhead from function allocation, especially in nested loops.
Explores how to make a StringBuilder enumerable in C# using compiler duck typing and extension methods, despite it not implementing IEnumerable.
Explores two unconventional C# patterns: using foreach on integers and awaiting TimeSpans via extension methods.
Explains why async/await doesn't work with JavaScript's forEach and provides the correct solution using Promise.all.
Explores how to enable foreach loops on C# types without implementing IEnumerable, using GetEnumerator methods and extension tricks.
A quick C# tip showing how to use an extension method to get the current index inside a foreach loop, combining the benefits of foreach and for.
A guide to using JavaScript's forEach() method for array iteration, covering syntax, parameters, and best practices.