Hadi Mobarra

۲۱ مقاله · ۱۰۹ دقیقه مطالعه

یادداشت‌های مهندسی

بررسی عمیق سازوکار درونی جاوااسکریپت، معماری ری‌اکت، تایپ‌اسکریپت و پرفورمنس وب — بر پایه تجربه در محصولات واقعی. بیشتر مقاله‌ها به زبان انگلیسی هستند.

RTL & i18nCSS

راست‌به‌چپ مرحله‌ای از ترجمه نیست

پشتیبانی RTL یک استایل آینه‌ای نیست که آخر کار اضافه شود. ویژگی‌های منطقی، جداسازی متن، آیکون‌ها، فونت و اعداد: کدام بخش رابط باید تغییر جهت بدهد و کدام نباید.

۳ آذر ۱۴۰۵ ۴ دقیقه مطالعه
Open SourceDebugging

Getting a First PR Merged into a 75,000-Star Project

Nine days, four review rounds, three of them asking for changes, and one honest admission. How a fix to Apache Superset got merged, and what the review taught me.

۳ آذر ۱۴۰۵ ۵ دقیقه مطالعه
PerformanceNext.js

I Cut This Site's JavaScript by 45%, and Blocking Time Didn't Move

Removing 127 KB of JavaScript halved the time to largest paint and did almost nothing for Total Blocking Time. What I measured, what I ruled out, and a font mistake that CI caught.

۳ آذر ۱۴۰۵ ۵ دقیقه مطالعه
Open SourceReact

Never Trust JSON.parse in a Render

One malformed string in a database was enough to crash an OpenMetadata page. How I fixed it upstream with small shape validators, and the two unrelated bugs that writing the tests uncovered.

۳ آذر ۱۴۰۵ ۵ دقیقه مطالعه
RTL & i18nData Platforms

What Persian Users See in Two Open-Source Data Tools

I ran Apache Superset and OpenMetadata in Persian and measured what changed. The layout doesn't turn around, some translations mean something else, and one language code may explain the strangest results.

۳ آذر ۱۴۰۵ ۳ دقیقه مطالعه
Data PlatformsJavaScript

Resumable Uploads: What Happens When the Connection Drops

A large upload will be interrupted. This article walks through the TUS protocol request by request, with a live demo you can break, and the client-side decisions that make resuming reliable.

۳ آذر ۱۴۰۵ ۵ دقیقه مطالعه
Data PlatformsRTL & i18n

Translating Forms Generated from JSON Schema

When forms are generated from a schema, their labels aren't in your translation files. A practical approach: extract text by path, translate it in a catalog, and localize the schema before it reaches the form.

۳ آذر ۱۴۰۵ ۵ دقیقه مطالعه
JavaScriptBrowser Internals

Async Iterators, Generators and Web Streams in Practice

Process data incrementally instead of all at once. A practical tour of generators, async iteration, backpressure, and the Web Streams API — with examples for paginated APIs, streaming fetch responses and LLM-style token streams.

۱۷ آبان ۱۴۰۵ ۶ دقیقه مطالعه
CSSPerformance

The Browser Rendering Pipeline: Writing 60fps Animations

Style, layout, paint and composite — what each stage costs, which CSS properties trigger which stages, and how to build animations that stay smooth with transforms, will-change, FLIP and the View Transitions API.

۱۷ آبان ۱۴۰۵ ۶ دقیقه مطالعه
JavaScriptArchitecture

Building a Fine-Grained Reactivity System (Signals) From Scratch

Signals power Solid, Preact, Angular and Vue's reactivity. Build one in under 100 lines to understand dependency tracking, computed values, effects and glitch-free updates.

۱۷ آبان ۱۴۰۵ ۶ دقیقه مطالعه
JavaScriptPerformance

Hunting Memory Leaks in JavaScript Applications

How garbage collection really decides what to keep, the five leak patterns behind most SPA memory issues, and a repeatable DevTools workflow using heap snapshots, allocation timelines and WeakRef-aware design.

۱۷ آبان ۱۴۰۵ ۶ دقیقه مطالعه
JavaScriptBrowser Internals

Inside the JavaScript Event Loop: Tasks, Microtasks and the Rendering Steps

A precise mental model of how the browser schedules your code — tasks, microtasks, requestAnimationFrame and rendering — and how to use it to write UIs that never freeze.

۱۷ آبان ۱۴۰۵ ۶ دقیقه مطالعه
JavaScriptArchitecture

Metaprogramming in JavaScript with Proxy and Reflect

Intercept property access, validation, and function calls with Proxy traps. Learn the invariants, the role of Reflect and receivers, and build a tiny reactive store, a validation layer and a negative-index array.

۱۷ آبان ۱۴۰۵ ۶ دقیقه مطالعه
ReactNext.js

A Mental Model for React Server Components and Streaming

Server Components, Client Components, the RSC payload, Suspense streaming and Server Actions — explained as one coherent model, with the composition patterns and pitfalls that matter in a real Next.js codebase.

۱۷ آبان ۱۴۰۵ ۶ دقیقه مطالعه
PerformanceCore Web Vitals

Taming INP: A Practical Guide to Interaction to Next Paint

INP replaced FID as a Core Web Vital. Learn how it's measured, how to find the slow interactions in your app, and the concrete techniques that cut it: yielding, deferring non-urgent work, React transitions and smaller DOMs.

۱۷ آبان ۱۴۰۵ ۶ دقیقه مطالعه
TypeScript

Type-Level Programming in TypeScript: Conditional, Mapped and Template Literal Types

Treat TypeScript's type system as a small functional language. Learn conditional types and infer, distributive behaviour, key remapping, recursive types and template literals, then build a type-safe router and a deep-path getter.

۱۷ آبان ۱۴۰۵ ۵ دقیقه مطالعه
JavaScriptPerformance

Off the Main Thread: Web Workers, Transferables and RPC in Practice

Move expensive work off the UI thread. Covers dedicated workers in modern bundlers, structured clone costs, zero-copy transferables, a promise-based RPC layer, SharedArrayBuffer with Atomics, and OffscreenCanvas.

۱۷ آبان ۱۴۰۵ ۵ دقیقه مطالعه
Next.jsReact

Shipping a Static Next.js Site: Seven Things the Docs Won't Warn You About

Metadata that silently disappears, two root layouts, social images without extensions, icons paid for twice. Lessons from rebuilding this bilingual site with Next.js 16 and static export.

۲۵ آذر ۱۴۰۳ ۴ دقیقه مطالعه
PerformanceCore Web Vitals

A Front-End Performance Workflow That Survives Real Users

Measure in the field, find the one metric that hurts, break it into parts, fix the largest part, and put a budget on it. A workflow for LCP, INP and CLS, with numbers from a real site.

۳۰ آبان ۱۴۰۳ ۵ دقیقه مطالعه
ReactArchitecture

React Architecture: Where State Lives and Where Boundaries Go

Most React codebases don't suffer from the wrong folder names. They suffer from state in the wrong place and modules without edges. A practical guide to both.

۱۹ مهر ۱۴۰۳ ۵ دقیقه مطالعه