Blog
Explanations of data structures, algorithms and web security, written for people learning them for the first time.
11 of 11 articles shown
The AI-Native SDLC, Explained With Examples
What an AI-native software development lifecycle looks like, walked through one small feature from brief to production, with the failure modes to watch for.
· 12 min read
Access Token Best Practices: Storage, Expiry and Rotation
How to handle access tokens safely: where to store them in the browser, how long they should live, refresh token rotation, validation, revocation and logging.
· 9 min read
Access Tokens and Refresh Tokens Explained
What access tokens and refresh tokens are, how the two work together, how JWTs differ from opaque tokens, and what a server must check before trusting one.
· 8 min read
How to Secure a Website: 12 Practical Steps
A practical website security checklist: HTTPS, safe password storage, input validation, XSS and CSRF defences, security headers, access control and secrets.
· 10 min read
XSS and CSRF Explained: How They Work and How to Stop Them
Cross-site scripting and cross-site request forgery explained with examples: how each attack works, how they differ, and the defences that stop them.
· 8 min read
Arrays Explained: How They Work and What Each Operation Costs
How arrays store data in memory, why reading by index is O(1) but inserting at the front is O(n), and what that means for JavaScript arrays.
· 8 min read
Big O Notation Explained
What Big O notation measures, the common complexity classes from O(1) to O(2^n), and how to work out the time and space complexity of your own code.
· 10 min read
Data Structures and Algorithms: What They Are and Where to Start
What data structures and algorithms are, why they are learned together, and the order to study them in if you are starting from zero.
· 8 min read
Hash Tables Explained: How Map and Set Find Things Instantly
How a hash table turns a key into a position, why lookups are O(1) on average, how collisions are handled, and when to use Map and Set in JavaScript.
· 10 min read
Linked Lists Explained
How a linked list stores data as nodes joined by pointers, what its operations cost compared with an array, and a simple JavaScript implementation.
· 9 min read
Stacks and Queues Explained
How stacks (last in, first out) and queues (first in, first out) work, what their operations cost, and how to build both correctly in JavaScript.
· 8 min read
Looking for one specific thing?
Search the full text of every article.