#Generics
5 notas · última:
Stack in C# - Code Maze
The article explains Stack in C# as a LIFO collection, shows the non-generic and generic constructors, and covers Count, Push, Peek, Pop, Clear, plus thread-safe options.
TypeScript is more than you think
The article treats TypeScript’s type system as a language on its own, with values, functions, conditions, loops, recursion, mapping, filtering, and string and tuple transformations.
TypeScript Generics for People Who Gave Up on Understanding Generics
The tutorial explains generics through `makeState()` and `makePair()`, showing type parameters, constraints, default types, reusable generic interfaces, type aliases, and generic classes.
Why use TypeScript?
The post argues that TypeScript helps build code that is easier to maintain and share over time by making data shapes, expected types, and connected changes visible to the compiler and linter.
Covariance and Contravariance in Generics
Explains covariance and contravariance in generics, but the captured text only provides the page title and does not include the article content.
