Notes
Snippets, references, and mental models.
mental-model
React State is a Snapshot
Why setting state doesn't update the variable immediately.
#react#javascript#mental-model
reference
Git Undo Cheat Sheet
Quick reference for undoing mistakes in Git.
#git#version-control#cli
snippet
React useEffect Cleanup Rule
Always return a cleanup function when setting up subscriptions or timers.
#react#javascript#hooks
reference
Types VS Interfaces in TypeScript
A reference for when to use Types vs Interfaces based on StackOverflow consensus.
#typescript#best-practices
mental-model
The JavaScript Event Loop: Kitchen Analogy
Understanding the Call Stack, Web APIs, and Task Queue using a restaurant analogy.
#javascript#async#core-concepts
reference
Common HTTP Status Codes
A quick reference for the status codes I actually use.
#http#api#web-dev
snippet
The Ultimate CSS Centering Guide
Modern ways to center a div horizontally and vertically.
#css#layout#flexbox#grid
reference
Connecting to Remote PostgreSQL with pgAdmin
A 3-step process to enable remote access to a PostgreSQL server.
#postgresql#pgadmin#ubuntu#config