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.

·Essay·visibility7 reads

Don't Let Vibe Coding Become Technical Debt: How Developers Can Balance Speed and Responsibility

In an era where AI writes code as a daily routine, 'vibe coding' has indeed made development faster and more enjoyable—a single sentence can get a feature up and running. But when that code needs to go to production, be maintained over the long term, and be someone's responsibility, the clash between speed and maintainability, stability, and reliability becomes unavoidable.

·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.