How to enable signing commits in Git using GPG keys git

How to enable signing commits in Git using GPG keys

Signed Git commits set up in minutes: the modern SSH key method for git 2.34+, from gpg.format ssh config through adding your key on GitHub, so your commits get the Verified badge. Commands included for Mac and Linux.

Feb 19, 2024

React Code splitting using lazy load techniques react

React Code splitting using lazy load techniques

React code splitting with React.lazy and Suspense: break a growing bundle into chunks users download only when needed, with a walkthrough of lazy imports, fallback UI, and why smaller initial loads help user experience and SEO.

Feb 5, 2024

Powerful switch statement with pattern matching in Ruby

Powerful switch statement with pattern matching in Ruby

Pattern matching in Ruby turns case statements into a precise switch over data shapes: match and destructure hashes from an API response, combine several patterns in one branch, capture values across patterns, and validate configuration. Ruby 2.7+ syntax examples.

How to deal with infinite scroll in React

How to deal with infinite scroll in React

Infinite scroll in React gets much easier with react-query: the useInfiniteQuery hook fetches posts page by page, cancels stale requests with AbortSignal, and exposes fetchNextPage for loading more. A complete typed example wrapped in a reusable usePosts hook.