The Strategy and Observer Design Patterns
Learn the Strategy and Observer design patterns with simple JavaScript examples: swap behaviour without if-else chains, and let many parts of your app react to one event.
Tech lead and full-stack engineer, Bengaluru
I lead full-stack delivery for hospitality and SaaS products, from system architecture and API design to UI, third-party integrations and production deployment, across web, mobile and desktop.
Learn the Strategy and Observer design patterns with simple JavaScript examples: swap behaviour without if-else chains, and let many parts of your app react to one event.
Learn HTML semantic elements like header, nav, main, article, section, aside and footer, when to use each one, and how they help screen readers and search engines.
Learn how JSON Web Tokens work and build a complete login system in Node.js and Express: password hashing, access tokens, auth middleware, roles and refresh tokens.
Breadth-first search and depth-first search explained with tested JavaScript: how each one walks a graph, shortest paths in unweighted graphs, connected components, cycle detection, topological sort, number of islands…
How environment variables work in Next.js 16: .env, .env.local and per-environment files, load order, server-only secrets vs NEXT_PUBLIC_ variables, why public values are frozen at build time, validation, and setting…