Tag
A tweet highlights Rob Pike's classic 30-line regular expression matcher in C, demonstrating recursion and pointer arithmetic as an introduction to regex engines.
This course teaches how to use context managers and the 'with' statement in Python, covering both class-based and function-based implementations.
An explanation of how to write a quine, a program that prints its own source code without introspection, using an allegory and detailed steps.
This article demonstrates how to use continuations in the Gleam programming language to abstract over different computational effects like error handling and async, enabling reusable business logic.
This article demonstrates implementing data-directed programming in Haskell for complex number operations, following the approach from SICP 2.4.3 to avoid modifying generic functions when adding new representations.
A concise implementation of a hash map in 25 lines of C using FNV-1a hashing and bitwise AND for efficient modulo operation, with void pointers for type-generic storage.
The article explains the conceptual shift required when moving from imperative to declarative programming, using Prolog to illustrate thinking in terms of relations rather than mutable state.
This blog post provides a toy Haskell implementation of profunctor equipment, including natural transformations and composition, to make category-theoretic concepts accessible to programmers.