Browsing: Dev

Dev

A discussion on the ongoing debate in JavaScript development regarding the use of let versus const for variable declarations. This article explores common arguments for and against preferring const wherever possible, concluding with a pragmatic approach to the choice.

Dev

React function components and class components differ fundamentally in their mental model, particularly how they handle rendered values. While Hooks have bridged the feature gap, function components inherently capture the props and state from the specific render they belong to, preventing common bugs related to mutable ‘this’ in classes. This article explores this core difference, demonstrating how closures in functions ensure consistency and how refs can be used to access the latest values when necessary.

Dev

This article details the implementation of the Strategy design pattern for managing various payment methods in an e-commerce checkout system. It addresses the challenge of building an extensible backend that supports diverse payment options without complex conditional logic, highlighting key features like type safety and easy extensibility.

Dev

This post provides an update on recent personal and professional developments. After leaving Meta in July 2023 and spending nearly two years at Bluesky, the author took a much-needed break. Currently in a transitional phase, the author is now offering consulting services focused on UI engineering, particularly React and React Native, to help teams with architectural and performance challenges.

Dev

A tool called ReliCSS helps identify outdated CSS in a codebase, offering modern solutions for common legacy issues. It categorizes these “relics” by severity, from high-risk fossils to low-severity vendor prefixes.

Dev

A new startup from the former GitHub CEO secures significant funding, while a major chipmaker expresses concerns about the rapid expansion of AI data centers. Additionally, Google has introduced an MCP server to enhance its developer documentation.