Search
Lessons (37)
- React vs Vue vs Angular
The same counter in three frameworks, a side-by-side comparison of reactivity, templates, state and tooling, and β¦
- React Fundamentals
β¦ When state changes, React re-renders that component (and its children). jsx import { useState } from "react"; function Counter β¦
- React Hooks in Practice
β¦ 2. Only call hooks from React functions (components or custom hooks). Why? React identifies each hook by its β¦
- Event-Driven Architecture
Build systems where components react to events instead of calling each other. Broker vs mediator topologies, the four β¦
- Frontend Performance & Core Web Vitals
β¦ render only the ~20 visible rows (TanStack Virtual, react-window) Context updates re-render everything Split contexts, or β¦
- MVC, MVP & MVVM
β¦ How each works, how data flows, and where you meet them in Rails, Express, Angular, Vue and React β¦
- Service Communication: Sync vs Async
β¦ dancers react to each other"] ORD[Orders] -- OrderPlaced INV2[Inventory] INV2 -- StockReserved PAY2[Payments] PAY2 -- PaymentCompleted SHIP2[Shipping β¦
- Behavioral Patterns I: Observer, Strategy, Command, State
β¦ deliver delivered -- [ ] cancelled -- [ ] You've used it: useReducer in React, XState state machines, TCP connection states, order and β¦
- Next.js Rendering: CSR, SSR, SSG, ISR & Server Components
Where and when is your HTML created? Compare client-side, server-side, static and incremental rendering, plus React β¦
- Choosing an Architecture
β¦ Distributed-systems complexity Event-driven Components react to published facts Many reactions to the same facts, integration, buffering β¦
- Structural Patterns: How to Connect Objects
β¦ balance = 50 β You've used it: Vue 3 reactivity (built on Proxy ), MobX, API gateways, CDNs (a caching β¦
- JavaScript Essentials: Event Loop, Closures & this
β¦ userName) { button.addEventListener("click", () = alert( Hi ${userName} )); } // 4. React hooks: every render's handlers close over that render β¦
- Graphs: BFS & DFS
β¦ JavaScript β TypeScript β React β Next.js. js function topoSort(graph) { // graph: node β nodes that depend on it const visited β¦
- What Are Design Patterns?
β¦ P["β Problem<br/ many objects need to<br/ react to one change"] P -- S["π‘ Solution<br/ subscribers register β¦
- Views, Triggers & Stored Procedures
β¦ Trigger guidance A trigger can react to a department change, but row-by-row cursor updates are often β¦
- Frontend Security
β¦ script runs as the victim How React protects you (mostly) React escapes everything you put in {} : <script becomes β¦
- S β Single Responsibility Principle
β¦ split.svg) A frontend example SRP applies to React components too. jsx // β Fetching + state + formatting + rendering in one β¦
- Clean Error Handling
β¦ Custom error classes let them react precisely. js class AppError extends Error { constructor(message, statusCode) { super(message); this β¦
- Kubernetes Cluster Architecture
β¦ server , and every component watches for changes and reacts. That's what makes Kubernetes so extensible and resilient β¦
- Kafka vs RabbitMQ & the Kafka Ecosystem
β¦ Pick what<br/ your team can operate well"] β Kafka shines for: event-driven microservices where many services react β¦
- Layered (N-Tier) Architecture
β¦ browser"] UI[React app] end subgraph T2["Tier 2: app server"] API["Controllers + services + repositories<br/ (3 layers β¦
- Frontend Testing Strategy
β¦ test.tsx import { render, screen } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import { LoginForm β¦
- SOLID at a Glance
β¦ an interface. - SOLID applies to modules, functions and React components too, not only classes. Common misunderstandings - β "SOLID means β¦
- O β Open/Closed Principle
β¦ VS Code Extensions Webpack / Vite Plugins and loaders React Components via children and render props ESLint Custom rules β¦
- I β Interface Segregation Principle
β¦ Change fax()"] -.affects only.- D3 end ISP in React: props A component's props are its interface. Don β¦
- Which Pattern Do I Need?
β¦ items and groups"] -- CO[Composite] P9["Many things react<br/ to one change"] -- OB[Observer] P10["Swap algorithms β¦
- DRY: Don't Repeat Yourself
β¦ types] ts // schemas/user.ts β used by the React form AND the API route import { z } from "zod β¦
- What Is Apache Kafka?
β¦ use cases)) Event-driven microservices OrderPlaced β many services react Activity tracking clicks, page views, searches Log and metrics β¦
- Clean Architecture
β¦ Use cases UserController , PostgresUserRepo π£ Frameworks & drivers Express, React, Postgres, Stripe Adapters app.listen() , pg.Pool Follow a β¦
- State Management (Redux, Zustand, TanStack Query)
β¦ Don't hand-roll that with useEffect + useState . jsx import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; function β¦
- Trees & Binary Search Trees
β¦ on your computer, the HTML DOM , JSON objects, React component trees, and database indexes (B-trees). Tree vocabulary β¦
- Microkernel (Plugin) Architecture
β¦ in code or config vite.config.ts β plugins: [react()] Convention Load everything matching a naming pattern or folder β¦
- Scaling & Health Probes
β¦ 300 wait 5 min before scaling down (avoid flapping) mermaid xychart-beta title "HPA reacting to a traffic β¦
- Data in Microservices: Sagas & the Outbox Pattern
β¦ Design compensations as business actions . Choreography saga (events) Each service listens for events and reacts. No central coordinator β¦
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
β¦ in.- A & B & C You've used it: React class lifecycle methods, test frameworks ( beforeEach β test β afterEach ), NestJS β¦
- Domain-Driven Design: Tactical Patterns
β¦ keeps boundaries clear 4. Use eventual consistency between aggregates One transaction changes one aggregate; others react to domain β¦
- Clean Architecture in Depth
β¦ cases (and their ports) π£ Frameworks & drivers Express, React, Postgres drivers, Stripe SDK You change a tool Adapters β¦