17 Equations that Changed the World - Rewritten in JavaScript
ð° algorithms
A leap year check in three instructions
With the following code, we can check whether a year is a leap year with only about 3 CPU instructions.
weeklyfoo #86 / 2025-05-26Collaborative Text Editing without CRDTs or OT
Collaborative text editing is arguably the hardest feature to implement in a collaborative app. Even if you use a central server and a fully general solution to optimistic local updates (server reconciliation), text editing in particular requires fancy algorithms - specifically, the core of a text-editing CRDT or OT.
weeklyfoo #86 / 2025-05-26JavaScript Algorithms and Data Structures
Algorithms and data structures implemented in JavaScript with explanations and links to further readings
weeklyfoo #55 / 2024-10-21Load Balancing Algorithms Explained Visually
Back to school! If you forgot about (weighted) round robin and the other algorithms take a look at this article.
weeklyfoo #15 / 2024-01-14Visualizing Algorithms