How to split decision and action logic with the Swift type system
A guide to improving Swift code maintainability and testability by separating decision logic from action logic using the type system.
A guide to improving Swift code maintainability and testability by separating decision logic from action logic using the type system.
Explores using Java's 'var' keyword to create and work with intersection types, enabling variables to combine multiple interfaces.
A PHP developer explores the impact of adding strong types, generics, and other type system improvements to the language.
Explains why TypeScript allows non-matching function signatures, focusing on substitutability with fewer parameters and void return types.
Explores a C# code pattern using nested generics that causes exponential compilation time, effectively creating a Denial-of-Service attack on the compiler.
A tutorial on implementing the classic Rock-Paper-Scissors game in under 10 lines of Julia code, showcasing multiple dispatch.
Explores why reflection in .NET is slow, examining CLR design goals, internal data structures, and the multi-step invocation process.
Explains Swift's Optional type, its implementation as an enum, and the importance of understanding it beyond basic nil-checking.
An introduction to Python metaclasses, explaining how classes themselves are objects and how the 'type' metaclass works.
Explains how to use a Python metaclass to solve recursive class definition issues when modeling a C++ API, similar to Django's approach.
A developer shares their experience adopting Scala and Functional Programming for a real-world financial software project, discussing risks and benefits.
Explores the new strong typing system in Javascript 2.0, covering type annotations, enforcement, and reduced type coercion.