Latest writings
Notes on AI agents, Salesforce, automation, micro-SaaS, and engineering.

Beyond Frameworks: Practical DOM Manipulation Techniques for High-Performance UIs
Build a small to-do list in plain JavaScript: cache elements, batch inserts, use one delegated listener, link DOM to state with data attributes, and avoid XSS.

The Frontend Architecture: From Junior Developer to Tech Lead
A practical roadmap for frontend developers: what to learn and how your job changes at each step from junior to mid-level, senior and tech lead.

Architecting Scalable JavaScript: OOP Principles & Design Patterns
Use private class fields, then the Module, Singleton and Observer patterns, in runnable JavaScript, and combine them into a small bot controller for an automation project.

Why TypeScript Matters: Adding Type Safety to Your JavaScript Projects
See what TypeScript catches before your code runs: convert a fragile JavaScript function, handle optional data, avoid the any trap, and add TypeScript to a project.

REST vs. GraphQL: A Frontend Engineer’s Reality Check
Build the same dashboard data layer twice, once with REST and once with GraphQL, in TypeScript, and compare round trips, caching, error handling and typing.

Secure Frontend Auth: The Definitive Guide to JWTs, Cookies, and Storage Strategies
Where should a single page app keep its JWT? Compare localStorage, memory and HttpOnly cookies, then build a refresh flow with Express cookies and Axios interceptors.

Mastering Chrome DevTools: Debugging Techniques That Save Hours of Development Time
Go beyond console.log in Chrome DevTools: live expressions, logpoints, conditional and XHR breakpoints, network throttling and blocking, local overrides and snippets.

Mastering the Metal: Essential Web APIs & Browser Internals for Frontend Engineers
The browser APIs underneath every framework: the DOM and BOM, fetch with AbortController, cookies vs Web Storage vs IndexedDB, microtasks, and Intersection Observer.

Demystifying CORS, HTTP, and Security: A Builder’s Guide
Why the browser blocks your cross-origin fetch, how preflight requests work, how to configure CORS in Express without opening a hole, and what else your API needs.

Mastering Asynchronous Operations with JavaScript Promises: A Builder's Guide
Learn JavaScript Promises by building a multi-city weather dashboard: fetch chains, error handling, Promise.all, Promise.allSettled and timeouts that really cancel.

Understanding the JavaScript Runtime: Event Loop, Call Stack, and Task Queue Explained
See how the call stack, task queue and microtask queue decide the order your JavaScript runs, why setTimeout(fn, 0) waits, and how to keep Node.js responsive.

Modern Async Patterns: Making Asynchronous Code Readable with Async/Await and Generators
Refactor nested promise chains into flat async/await code, run independent work in parallel with Promise.all, and page through an API with an async generator.

From Prototypes to ES6 Classes: Understanding JavaScript's Object-Oriented Nature
See what the class keyword does underneath: constructor functions, the prototype chain, extends rebuilt by hand, and why it explains lost this, polyfills and shared methods.
AWSFrom Development to Production: A Builder's Guide to Frontend Deployment Strategies
Compare three ways to ship a frontend: a managed platform, S3 with CloudFront, and a Docker image with Nginx. Each comes with config, caching rules and a CI step.

Automating Code Quality: The Modern Stack with ESLint, Prettier, and Husky
Set up Prettier, ESLint flat config with TypeScript and eslint-config-prettier, then make Husky and lint-staged check every commit. Tested with ESLint 10.

Improving Performance with Server-Side Rendering: Concepts and Implementation
See why server-side rendering paints content sooner than a client-rendered app, then build a streaming Next.js page with Server Components and Suspense.

Introduction to Micro Frontends: Building Scalable Architectures
Learn what micro frontends are, compare build-time, server-side and run-time integration, and wire two apps together with webpack Module Federation and custom events.

Demystifying the Build Pipeline: A Deep Dive into Webpack and Babel Configuration
Set up webpack 5 and Babel 8 from an empty folder: loaders, plugins, an HTML page, the dev server, CSS and images, and chunk splitting, with a config you can copy.

Automated Testing in React: Unit Testing with Jest and React Testing Library
Set up Jest and React Testing Library, then test a newsletter form the way a user uses it: typing, clicking, a loading state, success and a failed request.

React State Management: Context API vs. Redux & Building a Theme Switcher
When React Context is enough and when Redux Toolkit earns its place, with a comparison table and a tested dark mode switcher built on Context and a custom hook.

React Architecture: Advanced Navigation and Data Flow Patterns
Let the URL drive your React app: keep filters in search params, load data with route loaders, share layout data through Outlet context and show pending UI.

React Architecture: Mastering State and Props in Class vs. Functional Components
Build the same React counter as a class and as a function to see how props and state differ, then avoid stale closures, lost object fields and slow initial state.

Mastering React Hooks: From useState to Building a Production-Ready Custom Hook
Build a working useForm custom hook in React: grouped state, a generic change handler, validation derived during render and a submit handler that awaits your callback.

Getting Started with React: Deconstructing JSX and Component Architecture
Start a React project the way react.dev recommends, see what JSX compiles to, and build a reusable card component with props, plus the three JSX rules.