HeyBinyang

Articles

Notes on design, technology, and life, told in depth while looking for quiet corners of the digital age.

·Tech·visibility1 read

Custom Hooks: How to Design for Logic and Mental Model Reuse

A custom hook isn't about moving code to another file—it's about redesigning a piece of state logic into a stable interface. This article clarifies what makes a real custom hook and when you shouldn't extract one, from three angles: extraction timing, problem boundaries, and interface design.

·Tech·visibility3 reads

React Hooks: How to Refactor Computed Properties and Derived State

When writing React, the easiest way to bloat your components isn't network requests or animations — it's storing just a little too much state. In this article, we'll start with the problem of derived state and gradually unpack the design issues and their solutions.

·Tech·visibility8 reads

React useEffect: What Shouldn’t Go Inside

useEffect was originally an escape hatch from React for synchronizing with external systems. But many treat it as the command center for all internal component logic. Remember this simple rule: if no external system is involved, you usually don't need an Effect.

·Tech·visibility3 reads

Why React Hooks Get Messy Over Time (and How to Fix It)

Over time, many developers find that their experience with React Hooks shifts from clean and refreshing to increasingly messy. In this article, I'll analyze the root causes of this chaos and provide practical guidance to keep your hooks in order.

·Tech·visibility5 reads

DeepSeek + Reasonix: Process 400M Tokens for Just Over $4 per Day

Reasonix is a terminal AI coding agent designed specifically for the DeepSeek API. Rather than being a generic AI assistant wrapper, it deeply leverages DeepSeek's prefix caching mechanism with a cache-first architecture, minimizing the cost of repeated context to the extreme.

·Tech·visibility17 reads

Codex Subagents in Action: Building a Browser Game from Scratch

This article will introduce how to use Codex Subagents to develop a product from scratch. You will see how multiple agents collaborate to build a space shooter game that runs directly in the browser, covering the entire process from design documents, visual assets, to testing and validation.