programming-tutorial

Tag

Cards List
#programming-tutorial

@TrisH0x2A: Rob Pike wrote a complete regular expression matcher in about 30 lines of C it supports ^, ., *, and $ using only recur…

X AI KOLs Timeline · 2026-08-03 Cached

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.

0 favorites 0 likes
#programming-tutorial

@realpython: In this course you'll learn how context managers and the "with" statement work in Python, including the difference betw…

X AI KOLs Timeline · 2026-07-30 Cached

This course teaches how to use context managers and the 'with' statement in Python, covering both class-based and function-based implementations.

0 favorites 0 likes
#programming-tutorial

How to Write a Quine

Hacker News Top · 2026-07-23 Cached

An explanation of how to write a quine, a program that prints its own source code without introspection, using an allegory and detailed steps.

0 favorites 0 likes
#programming-tutorial

Abstracting effects with continuations

Lobsters Hottest · 2026-07-15 Cached

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.

0 favorites 0 likes
#programming-tutorial

Data-directed programming in Haskell (SICP2.4.3)

Lobsters Hottest · 2026-07-12 Cached

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.

0 favorites 0 likes
#programming-tutorial

@TrisH0x2A: a hash map in 25 lines of C FNV-1a handles the hashing, start with a fixed value and XOR each byte multiply by a prime …

X AI KOLs Timeline · 2026-06-24 Cached

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.

0 favorites 0 likes
#programming-tutorial

Thinking in States

Lobsters Hottest · 2026-05-17 Cached

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.

0 favorites 0 likes
#programming-tutorial

Profunctor Equipment in Haskell

Hacker News Top · 2026-05-16 Cached

This blog post provides a toy Haskell implementation of profunctor equipment, including natural transformations and composition, to make category-theoretic concepts accessible to programmers.

0 favorites 0 likes
← Back to home

Submit Feedback