Many developers work professionally with React for years without understanding how its re-rendering process works. This tutorial helps readers build a mental model for when and why React re-renders and how to tell why a specific component re-rendered. Knowing how React's render cycle works can help developers understand when to use React.memo and when to wrap functions in useCallback.
Google has introduced Protobuf Editions, a new feature flag system that lets plugin maintainers granularly control the behavior of generated APIs and runtimes. Editions combines existing proto2 and proto3 functionality and is backwards-compatible. It is recommended that developers stick with proto3 for now.
Nagle's algorithm, designed in the 1980s to reduce network overhead from small packets, often causes latency problems in modern distributed systems. This developer argues that TCP_NODELAY (which disables Nagle's algorithm) should be the default behavior on modern systems.
Web devs on Reddit give opinions on the best looking website they've seen and why they're so good. Stripe and GitHub are common winners. Animations are usually done with Lottie and the Web Animations API.
tinyworldmap is a lightweight map library for web apps that need to function offline or on low-bandwidth connections. It integrates with Leaflet and offers customization options like city labels and borders.
GraphQL has a great developer experience, but also introduces complexity in areas like caching, access control, and performance optimization. REST APIs are usually a better starting point for most teams.
This developer wanted to add static type checking to their Ruby gem but found RBS, the recommended approach, to be inconvenient. RBS requires maintaining separate type definition files and has limited support for tools like RSpec. Sorbet, an alternative approach, might have been a better choice.
The Split SDK is used for A/B testing the front-end in two ways: 1) loading both variations and using CSS to reveal the correct one (avoiding flicker), and 2) using a loading page and then redirecting the user to the appropriate variation.
Get our free, 5-minute newsletter read by 350,000 frontend, backend, and full stack developers