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.
A guide to advanced tuple type manipulation in TypeScript, covering syntax, variadic elements, and type-level computations.
A TypeScript tutorial explaining how to properly type tuple return values from functions, like custom React hooks, to avoid common type inference issues.
Explores practical uses of C# ValueTuple for swapping values, pattern matching, deconstruction, and implementing IEquatable to write cleaner code.
Explains the concept of tuples in programming, their use in JavaScript, and how they differ from arrays, with examples including React hooks.
Explains a TypeScript type inference issue when custom React hooks return arrays and provides two solutions using tuples or 'as const'.
A preview of Variadic Tuple Types, a new feature in the upcoming TypeScript 4.0 release, with examples and use cases.
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 technical overview of new features in C# 7, including pattern matching, tuples, out variables, and local functions.
Explores the new tuple deconstruction feature in C# 7, including syntax and how to deconstruct custom types.
Explains the new tuple syntax and ValueTuple type in C# 7, highlighting performance benefits and named elements over older Tuple classes.
Explains the benefits of using Python's namedtuple for readable, self-documenting, and efficient code compared to regular tuples.