shlogg · Early preview
Jen C. @yujhenchen

Front-End Engineer passionate about full-stack development

Understanding RSA Algorithm: Private & Public Keys Explained

To use RSA algorithm, you need a private key for signing & public key for verification. Private key generates tokens, while public key verifies their validity.

Extracting Nested URL Parameters In JavaScript

Extracts nested URL value using search parameter key. For example, for /main?from=/details?from=/more?id=456, extracts id=456 by recursively searching from and id parameters.

AbortController Vs RemoveEventListener For Cleanup In React Hooks

AbortController vs removeEventListener: Using AbortController simplifies cleanup in useEffect hooks, but requires careful consideration of event handling and state updates.

Difference Between Inline-Flex And Flex In CSS Layout

inline-flex` doesn't automatically fill parent container like `flex`. Its size depends on content & additional styles applied. `flex` behaves like block-level element, expanding to fit parent's available width by default.

Manually Dispatching Load Event To Window When Image Loads

Image load event doesn't bubble up to window by default. Manually dispatch 'load' event to notify window object.

Fix ESLint Version Mismatch With Bun And Npm

Error running npm run lint: ESLint version mismatch. Install same version with npm i eslint@9.9.0 -D and check installed version with npm ls eslint.