Topic

#JavaScript

157 posts tagged “JavaScript”.

Takina Takina · · 4 min read

Object.groupBy() in JavaScript, Explained

Object.groupBy() buckets array items by a key you compute, replacing the reduce() boilerplate developers have written for years. How it works.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

Structural Typing vs Nominal Typing in TypeScript

Structural typing checks shape, not name — TypeScript treats two differently-named types as compatible if their members match, unlike nominal systems.

#TypeScript #JavaScript #Web Development
Takina Takina · · 3 min read

JavaScript Import Attributes Explained

Import attributes let JavaScript modules declare a resource's expected type at import time, such as JSON — catching mismatches before code runs.

#JavaScript #Web Development #Modules
Takina Takina · · 4 min read

npm and pnpm Workspaces: Managing a Monorepo

Workspaces let npm and pnpm manage multiple packages in one repository, sharing a single dependency tree and letting packages reference each other locally.

#JavaScript #Web Development #Developer Tools
Chisato Chisato · · 4 min read

Trusted Types API: Stopping DOM XSS at the Sink

The Trusted Types API blocks DOM-based XSS by forcing risky DOM sinks like innerHTML to accept only vetted objects instead of raw strings.

#Security #Web Development #JavaScript
Takina Takina · · 4 min read

What Is Biome? ESLint and Prettier in One Rust Tool

Biome is a Rust-based linter and formatter that replaces ESLint and Prettier with one faster tool, one config file, and no plugin ecosystem to manage.

#JavaScript #TypeScript #Developer Tools
Takina Takina · · 4 min read

Svelte 5 Runes Explained

Svelte 5 runes like $state and $derived replace the old reactive-assignment magic with explicit function calls that work anywhere in a file.

#JavaScript #Frameworks #Web Development
Takina Takina · · 5 min read

TypeScript Variance Explained

Variance decides when TypeScript accepts Array<Dog> where Array<Animal> is expected — covariant, contravariant, or invariant, explained with examples.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Shallow Copy vs Deep Copy in JavaScript

A shallow copy duplicates an object's top-level properties but shares nested references; a deep copy duplicates everything recursively. How to do each.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

Canvas vs SVG: Choosing the Right Graphics API

Canvas draws immediate-mode pixels you redraw yourself; SVG keeps a live, styleable DOM of vector shapes. Here's how to pick between the two.

#Web Development #Frontend #JavaScript
Takina Takina · · 5 min read

toSorted, toReversed, with(): JS's New Array Methods

toSorted(), toReversed(), toSpliced(), and with() copy an array instead of mutating it, fixing a long-standing footgun in JavaScript's Array API.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 3 min read

What Is a SharedWorker? Explained

A SharedWorker runs one script shared across every tab and window of the same origin — a single background thread they can all connect to and message.

#JavaScript #Web Development #Performance
Takina Takina · · 5 min read

Zod vs Yup: TypeScript Schema Validation Compared

Zod infers static TypeScript types directly from its schemas; Yup was built for JavaScript form validation first. How the two approaches differ.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Bun vs Deno: Comparing the Two Node.js Alternatives

Bun and Deno both aim to replace Node.js with a faster, more batteries-included runtime. How their runtimes, tooling, and compatibility differ.

#JavaScript #Node.js #Developer Tools
Takina Takina · · 5 min read

TypeScript Declaration Files (.d.ts) Explained

A .d.ts file describes a library's types without its implementation. How TypeScript declaration files work, and how to write one for an untyped JS package.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Tuple Types Explained

A TypeScript tuple is a fixed-length array where each position has its own type. How tuples work, labeled elements, and when to use them over arrays.

#TypeScript #JavaScript #Web Development
Takina Takina · · 5 min read

ResizeObserver vs IntersectionObserver: Which to Use

ResizeObserver watches an element's size; IntersectionObserver watches its visibility. Both replace scroll/resize listeners — here's when to use each.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

NFA vs DFA: How Regex Engines Actually Work

Most regex engines backtrack through an NFA; a few compile to a DFA instead. The difference explains why some patterns hang forever and others never do.

#JavaScript #Computer Science #Algorithms
Takina Takina · · 4 min read

JavaScript Private Class Fields Explained

JavaScript private class fields use a # prefix to enforce true encapsulation at the language level, hiding state that closures and underscores never could.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

TypeScript Index Signatures Explained

An index signature lets a TypeScript type describe objects whose keys aren't known in advance. How the syntax works, and when to reach for a Record instead.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

JavaScript Iterator Helpers Explained

JavaScript's iterator helper methods bring map, filter, and take directly to iterators, so lazy sequences no longer need a library or a manual loop.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

What Is the Reflect API in JavaScript?

JavaScript's Reflect object mirrors fundamental object operations as functions, designed to pair with Proxy traps and simplify metaprogramming.

#JavaScript #Web Development #Frontend
The Lycoris Team The Lycoris Team · · 4 min read

TypeScript Module Resolution Explained

TypeScript's moduleResolution setting decides how import paths map to files. How node10, node16, and bundler resolution differ, and which to pick.

#TypeScript #JavaScript #Developer Tools
Takina Takina · · 4 min read

What Is the Navigation API? Explained

The Navigation API gives JavaScript a structured way to intercept and control browser navigations — a modern alternative to the History API.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

useMemo vs useCallback: When to Use Each in React

useMemo caches a computed value; useCallback caches a function reference. Both skip work on re-render, but they memoize different things.

#JavaScript #React #Web Development
Takina Takina · · 4 min read

React Context API Explained

React's Context API passes data through the component tree without manually threading props at every level — and where it stops being the right tool.

#React #JavaScript #Frontend
Takina Takina · · 4 min read

setTimeout vs setInterval in JavaScript

setTimeout runs a callback once after a delay; setInterval repeats it on a fixed cadence — but drifts under load in ways setTimeout recursion avoids.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

TypeScript vs JavaScript: What's the Real Difference

TypeScript is JavaScript plus a compile-time type system — same runtime, different guarantees. Where each one wins and how they fit together.

#TypeScript #JavaScript #Web Development
Takina Takina · · 5 min read

Top-Level Await in JavaScript, Explained

Top-level await lets a JavaScript module pause at import time without wrapping code in an async function. How it works and when it bites.

#JavaScript #Web Development
Takina Takina · · 4 min read

Node.js Cluster vs Worker Threads: Which to Use

Node's cluster module forks whole processes to use every CPU core; worker_threads share memory inside one process. How to pick between them.

#JavaScript #Node.js #Performance
Takina Takina · · 5 min read

Nx vs Turborepo: Choosing a Monorepo Build Tool

Nx and Turborepo both speed up monorepo builds with caching and task graphs — the real difference is scope, plugins, and how much structure you want.

#Developer Tools #JavaScript #Web Development
Takina Takina · · 4 min read

JavaScript Strict Mode Explained

Strict mode turns silent JavaScript mistakes into thrown errors and closes off unsafe legacy behavior. Modules and classes use it by default.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

What Is BigInt in JavaScript? Big Integers Explained

BigInt is JavaScript's built-in type for whole numbers beyond Number's safe limit. How the syntax works, what it can't do, and when you actually need it.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

esbuild vs Rollup vs webpack: Comparing JS Bundlers

esbuild, Rollup, and webpack all bundle JavaScript, but trade off speed, configurability, and output shape differently. Which fits which project.

#Developer Tools #JavaScript #Web Development
Takina Takina · · 4 min read

How Garbage Collection Works in JavaScript

JavaScript frees memory automatically by tracking reachability, not reference counts. How the mark-and-sweep algorithm works and what causes leaks anyway.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

requestIdleCallback vs requestAnimationFrame

requestAnimationFrame schedules work right before the next repaint; requestIdleCallback runs only when the browser is otherwise idle. When to use each one.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

Node.js Buffer Explained: Binary Data Handling

Node's Buffer class holds raw binary data outside the V8 heap, letting Node handle files, sockets, and streams efficiently. Here's how it works.

#JavaScript #Backend #Developer Tools
Takina Takina · · 4 min read

JavaScript Typed Arrays and ArrayBuffer, Explained

ArrayBuffer allocates raw binary memory; typed arrays like Uint8Array give it a numeric type and view. How JavaScript handles binary data directly.

#JavaScript #Web Development #Performance
Takina Takina · · 5 min read

What Is Hoisting in JavaScript?

Hoisting moves variable and function declarations to the top of their scope before code runs, which explains some of JavaScript's most confusing bugs.

#JavaScript #Web Development
Takina Takina · · 4 min read

The URL API in JavaScript, Explained

The URL API parses, builds, and validates URLs natively in JavaScript — no regex needed. How URL and URLSearchParams work, with practical examples.

#JavaScript #Web Development
Takina Takina · · 4 min read

The Clipboard API, Explained

The Clipboard API lets web pages read and write the system clipboard asynchronously, replacing the old execCommand copy/paste hacks with a real API.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

The Web Share API Explained: Native OS Share Sheets

The Web Share API lets a web page open the device's native share sheet to send text, links, or files to other apps, no clipboard hack required.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

Remix vs Next.js: Which React Framework to Use

Remix and Next.js both extend React with routing and data loading, but differ sharply in rendering model, data fetching, and deployment targets.

#JavaScript #Frameworks #Web Development
The Lycoris Team The Lycoris Team · · 4 min read

Vitest vs Jest: Choosing a JavaScript Test Runner

Vitest and Jest share a similar API, but Vitest's Vite-based architecture makes it faster with native ESM. How the two test runners compare.

#JavaScript #Developer Tools #Testing
Takina Takina · · 3 min read

What Is the Web Animations API? JS-Native Animation

The Web Animations API lets JavaScript create and control animations natively, combining CSS-animation performance with imperative, scriptable control.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

MutationObserver API Explained

The MutationObserver API watches for changes to the DOM — attributes, child nodes, and text — without polling. How it works and when to use it.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 3 min read

JavaScript Atomics and SharedArrayBuffer Explained

SharedArrayBuffer lets JS threads share raw memory; Atomics provides race-free operations on it. How true multi-threaded data sharing works in JS.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

What Is a Polyfill in JavaScript?

A polyfill is code that implements a missing browser feature so older environments behave as if they supported it natively.

#JavaScript #Web Development #Frontend
The Lycoris Team The Lycoris Team · · 4 min read

Tail Call Optimization Explained

Tail call optimization reuses a function's stack frame for its final call instead of pushing a new one, turning some recursion into constant stack space.

#Computer Science #JavaScript #Algorithms
Takina Takina · · 5 min read

TypeScript Branded Types Explained

Branded types attach a compile-time-only tag to a primitive so TypeScript rejects mixing values that share a shape but not a meaning.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

JavaScript flat() and flatMap() Explained

flat() flattens nested arrays by a given depth; flatMap() maps then flattens one level in a single pass. How each works and when to pick one.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

The History API and Client-Side Routing

The History API lets JavaScript change the URL and manage browser history without a page reload, which is what makes client-side routing possible.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

Zustand vs Redux: Choosing State Management for React

Zustand is a minimal hook-based store with almost no boilerplate; Redux is a stricter, more structured pattern built for large, predictable state trees.

#React #JavaScript #State Management
Takina Takina · · 4 min read

TypeScript Declaration Merging Explained

Declaration merging lets TypeScript combine multiple declarations of the same name into one — the mechanism behind extending interfaces and global types.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Object.freeze() vs Object.seal() in JavaScript

Object.freeze() locks an object completely; Object.seal() only stops adding or removing properties. How the two immutability methods differ.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

TypeScript Abstract Classes, Explained

Abstract classes in TypeScript define shared implementation plus methods subclasses must fill in. How they differ from interfaces and when to reach for them.

#TypeScript #JavaScript #Web Development
Takina Takina · · 3 min read

React Suspense, Explained

React Suspense lets components pause rendering while they wait on async data, showing a fallback UI instead of manual loading-state juggling.

#React #JavaScript #Frontend
Takina Takina · · 4 min read

The Page Visibility API Explained

The Page Visibility API tells JavaScript when a tab is hidden or visible, so you can pause polling, animations, and timers the user can't see.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

What Is a Lockfile? Reproducible Dependency Installs

A lockfile records the exact dependency versions your package manager resolved, so every install — from your laptop to CI — reproduces the same tree.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 3 min read

TypeScript's never Type, Explained

never represents values that can't exist — it marks unreachable code, exhaustive switches, and functions that always throw or loop forever.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript readonly Modifiers Explained

TypeScript's readonly keyword blocks reassignment at compile time for properties, arrays, and tuples — with no runtime enforcement at all.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

JavaScript Intl API: Formatting Dates and Numbers

The Intl API formats dates, numbers, and currency using a user's locale without a library. How Intl.DateTimeFormat and Intl.NumberFormat work.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 4 min read

requestIdleCallback Explained

requestIdleCallback runs low-priority JavaScript when the browser is idle, without blocking rendering, input, or the main thread.

#JavaScript #Performance #Web Development
Takina Takina · · 5 min read

Turbopack vs Webpack: Choosing a JS Bundler

Turbopack is a Rust-based bundler built for incremental speed; Webpack is the mature, plugin-heavy standard. How they differ and when to pick each.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 5 min read

Promise.all() vs allSettled() vs race() Compared

Promise.all() fails fast, allSettled() waits for every result, and race() returns whichever promise finishes first — how to choose correctly.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

JavaScript Spread vs Rest Operators, Explained

The spread operator (...) expands an iterable into individual elements; the rest operator collects elements back into an array. Same syntax, opposite jobs.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

TypeScript's `as const`, Explained

TypeScript's as const assertion locks a value to its literal, readonly type instead of widening it. How it works and when to reach for it.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

ResizeObserver API Explained: Watching Element Size

The ResizeObserver API lets JavaScript watch an element's box size and react without polling or resize-event hacks. How it works and when to use it.

#Web Development #JavaScript #Frontend
Takina Takina · · 5 min read

Finding and Fixing Memory Leaks in JavaScript

A JavaScript memory leak happens when a reference outlives its usefulness and the garbage collector can't reclaim it. Common causes and how to find them.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

localStorage vs sessionStorage vs Cookies

localStorage, sessionStorage, and cookies all store data in the browser, but differ in lifetime, size limits, and whether the server can see them.

#JavaScript #Web Development #Frontend
Takina Takina · · 5 min read

Web Push Notifications: How the Push API Works

The Push API lets a web app send notifications through a service worker, even when the site isn't open in a browser tab. Here's the full flow.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

JavaScript's this Keyword, Explained

How JavaScript determines what this refers to: default, implicit, explicit, and new binding, plus why arrow functions behave differently.

#JavaScript #Web Development #Frontend
The Lycoris Team The Lycoris Team · · 4 min read

What Is a Monad? A Practical Explanation for Programmers

A monad is a wrapper type with rules for chaining operations that might fail, be async, or carry extra context — like Promise or Optional, generalized.

#Computer Science #Programming Languages #JavaScript
Takina Takina · · 5 min read

TypeScript Type Guards, Explained

Type guards are functions and checks that narrow a TypeScript union to a specific type at runtime. How typeof, instanceof, in, and custom guards work.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Function Overloads Explained

TypeScript function overloads let one function name accept multiple call signatures with different types. How overload signatures work and when to use them.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Tagged Template Literals in JavaScript, Explained

Tagged template literals let a function intercept a template string's parts before interpolation — the mechanism behind safe SQL, styled-components, and i18n.

#JavaScript #Web Development #TypeScript
Takina Takina · · 5 min read

What Is IndexedDB? Browser-Side Structured Storage

IndexedDB is a browser API for storing large amounts of structured data client-side, with indexes, transactions, and no size limit like localStorage.

#Web Development #JavaScript #Frontend
Takina Takina · · 4 min read

JavaScript Event Delegation Explained

Event delegation attaches one listener to a parent instead of one per child, using event bubbling to catch clicks from elements added after page load.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

Intersection Observer API Explained

The Intersection Observer API tells you when an element enters or leaves the viewport, without scroll-event polling. How it works and where to use it.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

structuredClone() Explained: Deep Copies in JS

structuredClone() is a built-in JavaScript function for deep-copying values, including cycles and typed arrays, without the workarounds JSON tricks require.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

TypeScript Template Literal Types Explained

Template literal types let TypeScript build string types from other types, like JavaScript template strings. How they work, with practical patterns.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript interface vs type: What's the Difference

TypeScript's interface and type both describe object shapes, but they diverge on declaration merging, unions, and extension. When to reach for each.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

What Is requestAnimationFrame? Smooth JS Animation

requestAnimationFrame schedules a callback right before the browser repaints, syncing JavaScript animation to the display's refresh rate. How it works.

#JavaScript #Frontend #Performance
Takina Takina · · 4 min read

Solid.js vs React: Two Models of Reactivity Compared

Solid.js uses fine-grained signals and no virtual DOM; React re-renders components and diffs. How the two reactivity models differ in practice.

#JavaScript #Frameworks #Web Development
Takina Takina · · 5 min read

Server-Sent Events vs WebSockets: Which to Use

SSE streams one-way updates over plain HTTP; WebSockets open a full-duplex channel. How they differ and which fits your real-time feature.

#Web Development #JavaScript #Networking
Takina Takina · · 4 min read

TypeScript Mapped Types Explained

Mapped types transform one type into another by iterating over its keys — the mechanism behind Partial, Readonly, Record, and Pick under the hood.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Enums Explained (and When to Avoid Them)

TypeScript enums group named constants under one type. How numeric, string, and const enums compile, and when a union type is the better choice.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Discriminated Unions Explained

A discriminated union tags each variant of a type with a shared literal field, letting TypeScript narrow the type automatically inside a switch or if check.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

var vs let vs const in JavaScript

var, let, and const differ in scope, hoisting behavior, and reassignment rules. Here's what each one actually does and when to reach for it.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

ESLint vs Prettier: Linting vs Formatting

ESLint catches bugs and enforces code patterns; Prettier only reformats how code looks. Why most JavaScript projects run both, not one or the other.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 4 min read

JavaScript Optional Chaining and Nullish Coalescing

Optional chaining (?.) short-circuits on null or undefined instead of throwing; nullish coalescing (??) supplies a default only for null or undefined.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

JavaScript Prototypal Inheritance Explained

Prototypal inheritance means JavaScript objects inherit properties directly from other objects via a prototype chain, not from classes. How it works.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

Web Workers vs Service Workers: What's the Difference

Web workers run scripts off the main thread for parallel computation. Service workers intercept network requests for offline and caching. How they differ.

#JavaScript #Web Development #Performance
Takina Takina · · 4 min read

TypeScript unknown vs any: What's the Difference

TypeScript's unknown forces a type check before use; any opts out of type checking entirely. When to reach for each in real code.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Conditional Types Explained

Conditional types let TypeScript pick a type based on another type, using T extends U ? X : Y — the foundation of most advanced type utilities.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Vue vs React: Which Framework Fits Your Project

Vue uses a template syntax with a reactive proxy system; React uses JSX with a virtual DOM. How the two frameworks differ and when to pick each.

#JavaScript #Frameworks #Web Development
Takina Takina · · 5 min read

WeakMap and WeakRef in JavaScript, Explained

A WeakMap holds object keys without blocking garbage collection, unlike a regular Map. How WeakMap and WeakRef work and when to reach for them.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

JavaScript Map and Set: When to Use Them Over Objects

JavaScript's Map and Set are built-in collections with cleaner semantics than plain objects and arrays. Here's how each works and when to reach for one.

#JavaScript #Web Development #Frontend
Takina Takina · · 4 min read

The TypeScript satisfies Operator, Explained

TypeScript's satisfies operator checks a value against a type without widening or erasing its inferred literal type. Here's when to reach for it.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

TypeScript Decorators Explained: Syntax and Use Cases

TypeScript decorators attach reusable behavior to classes and members with an @ syntax. How class, method, and field decorators work, with real examples.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

What Is Shadow DOM? Encapsulated Web Components

Shadow DOM attaches an isolated DOM tree to an element so a component's styles and markup can't leak in or out. Here's how it actually works.

#Web Development #JavaScript #CSS
Takina Takina · · 4 min read

npm vs pnpm vs Yarn: Which Package Manager to Use

npm, pnpm, and Yarn all install the same packages but differ in speed, disk usage, and monorepo support. Here's how to pick the right one.

#JavaScript #Web Development #Developer Tools
Takina Takina · · 4 min read

AbortController: Canceling Fetch Requests in JS

AbortController lets JavaScript cancel an in-flight fetch or async task on demand, preventing stale responses from overwriting newer state.

#JavaScript #Web Development #Performance
Takina Takina · · 5 min read

ESM vs CommonJS: JavaScript Modules Explained

ESM and CommonJS are JavaScript's two module systems — how import/export differs from require/module.exports, and when each one is used.

#JavaScript #Node.js #Web Development
Chisato Chisato · · 3 min read

What Is XSS? Cross-Site Scripting Explained

Cross-site scripting (XSS) injects malicious scripts into pages other users view. How stored, reflected, and DOM-based XSS work, and how to prevent them.

#Security #Web Development #JavaScript
Takina Takina · · 4 min read

Optimistic UI Updates Explained

Optimistic UI updates the interface immediately, before the server confirms a change, then rolls back if the request fails — for apps that feel instant.

#Web Development #Frontend #JavaScript
Takina Takina · · 4 min read

JavaScript Generators and Iterators, Explained

Generators are functions that pause and resume with the yield keyword, producing values lazily on demand instead of computing them all at once.

#JavaScript #Web Development #Frontend
The Lycoris Team The Lycoris Team · · 4 min read

What Is Memoization? Caching Function Results Explained

Memoization caches a function's return value by its input, skipping recomputation on repeat calls. How it works and when it actually helps.

#Computer Science #JavaScript #Software Engineering
Takina Takina · · 4 min read

TypeScript Generics Explained

TypeScript generics let functions and types work with any type while preserving the specific type used at each call site, avoiding both duplication and any.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

Async/Await vs Promises in JavaScript

Async/await is syntactic sugar over Promises, not a different mechanism. How each looks in practice, and when to still reach for raw Promises.

#JavaScript #Web Development #Async
Takina Takina · · 4 min read

What Is the Virtual DOM? How React Updates the UI

The virtual DOM is an in-memory copy of the UI tree that frameworks diff against the previous version to batch and minimize real DOM updates.

#JavaScript #Web Development #Frontend
Chisato Chisato · · 4 min read

What Is a Content Security Policy (CSP)?

A Content Security Policy is an HTTP header that restricts what scripts and resources a page can load, blocking most XSS attacks by default.

#Security #Web Development #JavaScript
Takina Takina · · 4 min read

JavaScript Proxy Objects Explained

A JavaScript Proxy wraps an object and intercepts operations like get and set through traps. How traps work, with practical examples and Reflect.

#JavaScript #Web Development
Takina Takina · · 4 min read

What Is a Web Worker? Running JS Off the Main Thread

A web worker runs JavaScript on a background thread, freeing the main thread to keep the UI responsive. How workers communicate and when to use one.

#JavaScript #Web Development #Performance
Takina Takina · · 5 min read

Svelte vs React: Which Should You Choose?

Svelte compiles away at build time; React ships a runtime and virtual DOM. Bundle size, reactivity model, and ecosystem tradeoffs compared.

#JavaScript #Frameworks #Web Development
Takina Takina · · 5 min read

TypeScript 7.0 Released: Go Rewrite, 10x Faster

Microsoft shipped TypeScript 7.0 with a Go-native compiler that's roughly 10x faster than 6.0. What changed, what breaks, and how to upgrade.

#TypeScript #JavaScript #Developer Tools
Takina Takina · · 5 min read

JavaScript Closures Explained, With Examples

A JavaScript closure is a function that remembers the variables from where it was defined. How closures work, why they matter, and the classic loop gotcha.

#JavaScript #Web Development #Frontend
Takina Takina · · 5 min read

Debounce vs Throttle: Rate-Limiting Events in JS

Debounce and throttle both tame rapid-fire events, but differently — debounce waits for a pause, throttle enforces a steady rate. When to use each.

#JavaScript #Frontend #Performance
Takina Takina · · 4 min read

What Is WebRTC? Real-Time Audio, Video, and Data

WebRTC lets browsers stream audio, video, and data directly between peers — no plugins. How getUserMedia, RTCPeerConnection, and ICE/STUN/TURN fit together.

#Web Development #Networking #JavaScript
Takina Takina · · 4 min read

What Is a WebSocket? Real-Time, Two-Way Web Communication

A WebSocket is a protocol for full-duplex, persistent communication over a single TCP connection. Learn how it works, when to use it, and what the alternatives are.

#Web Development #JavaScript #Networking
Takina Takina · · 4 min read

What Is CORS? Cross-Origin Requests, Explained

CORS lets a server opt in to cross-origin browser requests, relaxing the same-origin policy in a controlled way. Why it exists and how to fix CORS errors.

#Web Development #Security #JavaScript
Takina Takina · · 4 min read

Understanding the JavaScript Event Loop

JavaScript is single-threaded, yet pages stay responsive. A clear tour of the call stack, task queue, and microtasks — with examples you can run.

#JavaScript #Web Development #Async
Takina Takina · · 5 min read

Signals: The Reactivity Model Taking Over Frontends

Signals offer fine-grained reactivity with automatic dependency tracking — and nearly every major framework has adopted them. Here's why the model won.

#JavaScript #Web Development #Frameworks
Takina Takina · · 3 min read

What Is JavaScript? The Programming Language of the Web

JavaScript is the programming language that makes web pages interactive. Learn how it works alongside HTML and CSS, and why it runs nearly everywhere.

#JavaScript #Web Development #Programming Languages
Takina Takina · · 5 min read

React Server Components, Explained Without the Hype

React Server Components render exclusively on the server and stream a serialized result — no client JS shipped for that component. Here's what that actually means.

#React #Web Development #JavaScript
Takina Takina · · 3 min read

Getting Started with TypeScript: A Practical Guide

TypeScript adds a safety net to JavaScript without slowing you down. Here's how to set it up, the handful of concepts that matter, and how to adopt it gradually.

#TypeScript #JavaScript #Web Development
Takina Takina · · 4 min read

What Are Server-Sent Events (SSE)?

Server-Sent Events stream real-time updates over a single HTTP connection. How SSE works, when to use it, and how it compares to WebSockets.

#Web Development #JavaScript #Performance

← All topics