10 articles tagged Fundamentals.
How context windows work, what tokens actually cost, the lost-in-the-middle effect, and practical strategies for fitting a real codebase into one.
The TweakPad Team
Which computer-science fundamentals genuinely pay off in application work — complexity, data structures, concurrency and naming — and which are safely skippable.
The TweakPad Team
What each join type returns, why LEFT JOIN with a WHERE clause silently becomes an INNER JOIN, and how row multiplication inflates your aggregates.
The TweakPad Team
What React does with keys during reconciliation, the concrete bugs index keys cause, and how to pick a key when your data has no id.
The TweakPad Team
useState, useEffect, useRef, useReducer and the newer hooks — what each is for, the dependency-array rules, and the mistakes that cause infinite loops.
The TweakPad Team
How the event loop actually schedules work, why promises always run before setTimeout, and how to stop long tasks from freezing your page.
The TweakPad Team
What a closure is, why the classic loop bug happens, and the three real-world patterns closures enable — memoisation, private state and partial application.
The TweakPad Team
How ?. and ?? work, why ?? is not the same as ||, and the short-circuit behaviour that surprises people. With practical patterns for API data.
The TweakPad Team
Why 0 == "" is true, NaN !== NaN, and when Object.is differs from strict equality. A clear model for JavaScript comparison instead of memorised rules.
The TweakPad Team
A working reference for JavaScript array methods — which mutate, which return new arrays, and which one to reach for. With performance notes and real examples.
The TweakPad Team