Introduction to Sorting Algorithms in JavaScript
June 13, 2024Bubble, selection, insertion, merge, quick, and heap sort in JavaScript, with notes on performance, stability, space complexity, and the built-in sort method.
JavaScript tutorials and references, from the DOM and promises to functional patterns and sorting algorithms. Older posts show the syntax and tooling that was current when they were written.
Bubble, selection, insertion, merge, quick, and heap sort in JavaScript, with notes on performance, stability, space complexity, and the built-in sort method.
Send cookies across origins in Express: CORS headers, the cors middleware with credentials, and httpOnly, secure and sameSite settings for dev and production.
Two patterns for multiple API calls with fetch and async/await: run independent requests together with Promise.all, or chain one that needs a prior result.
Quick Mongoose reference: the connection URI, connecting, defining schemas and models, common model methods, and relating documents with refs and populate.
Build a todo app with Express, EJS and Mongoose from scratch: connect MongoDB with dotenv, add morgan and method-override, seed todos, then deploy to Heroku.
Express quick reference covering project setup, middleware like morgan and cors, routes, the req and res objects, templates, routers, databases and API calls.
A beginner Express walkthrough: what a web server is, serving static files, EJS templates and partials, building a todo list you can cross off, and deploying.