About:

About me and some of my side projects.

Website:

Outgoing Links:

Kent C. Dodds
Subscribe to RSS:
The text is about the author's mother's battle with cancer and her eventual death. It describes the author's experiences and emotions during this time.
The text describes the story of a real human skull found by the author, which was possibly part of a complete preserved skeleton used as a teaching aid for medical students. The skull belonged to Henk Pelser, a medical student who...
The text explains the connection between the Fibonacci sequence and the Golden Ratio, Phi. It discusses how the values of the Fibonacci sequence increase and how they can be approximated by an exponential curve. It concludes that ...
The post explores alternative base number systems, including binary, negabinary, and quarter-imaginary. It explains the general rules of positional notation systems and how to count in different base number systems.
The post discusses the concept of loose equality in JavaScript and how it violates transitivity. It explains the properties of equivalence relations and proposes an easy fix to alter loose equality. The author also discusses the p...
The post is a collection of symbols for the author, including pronunciation, images, Morse code, Braille, and Schläfli symbols.
The text discusses Langton's Ant, a cellular automaton that produces symmetrical and chaotic patterns, and the emergence of the highway pattern. It also mentions Rice's Theorem, which states that all non-trivial semantic propertie...
The post discusses the default options pattern in TypeScript, which is a pattern used in many projects. It explains how to make function arguments optional and how to wrap them up in an options object to support sensible defaults ...
The text discusses a utility function in TypeScript called isObject, which is used to deal with unknown values in error handling and composing type predicates. It explains how to use this utility function in catch blocks and in cr...
The post demonstrates two approaches for simulating rolls of a die of a given size using only rolls of a die of a different size. The first approach uses base number conversion, while the second approach uses recursive unit interv...
The text discusses the Fibonacci sequence and its repeating cycles under different modulo. It also explores the possibility of creating graphs for other numeric sequences and the difficulty in doing so.
The text explains asynchronous programming in TypeScript, focusing on Promises and async/await syntax. It discusses the syntax, parallelism, and combining results from different stages of asynchronous tasks. It emphasizes the impo...
Memoization is the process of remembering the results of previous computations, which can be reused in the future. It is suitable for computationally expensive pure functions, but not for very cheap functions, non-deterministic fu...
The text explains how to sort arrays in JavaScript using the built-in sort method. It discusses quirks of the method, how to fix them, sorting objects by property, sorting by ascending or descending, sorting by multiple properties...
The text discusses the limitations of representing numbers in JavaScript, particularly the rounding errors that occur due to the use of floating-point numbers. It explains the concepts of natural, integer, rational, and irrational...
The post discusses the React Testing Library and presents three testing recipes for UI components. The first recipe is a basic test for a counter component, the second recipe is a negative test for a welcome banner, and the third ...
ESLint and Prettier are tools used for identifying and fixing errors in code. Rice's theorem states that static analysis will always be flawed in some way. While syntactic problems can be easily identified and fixed, semantic prob...
The post discusses the new TypeScript 4.4 feature 'useUnknownInCatchVariables' and its implications. It explains how the 'unknown' type treats caught errors and the need for type guards to handle errors. The author shares their ex...
The text provides a guide on how to publish TypeScript React components to NPM. It covers project setup, adding TypeScript and React, writing React components, the build process, and the publishing process. It emphasizes the impor...
The post discusses three separate but similar syntaxes related to values that might not be defined: Optional Properties, Nullish Coalescing Operator, and Optional Chaining. It explains how to handle optional properties in TypeScri...