This is a feed of tiny memos highlighting the most interesting things I learned recently.
- Partytown allows running heavy JavaScript in a background thread
- NextJS might need an encryption key to implement closures in Server Actions
- jujutsu is a VCS written in Rust (compatible with git and other backends)
- NextJS's global-error.js boundary is only displayed on prod
-
el.style.cssText
should be used for assignment toel.style
- GitHub supports RegExp search since October 2022
- NextJS does not provide a secure way to use cookies during SSR pass
- HTTP-status 308 to be preferred over HTTP-status 301 in most cases
- webpack RAM consumption can be adjusted via paralellism config
- TypeScript Explorer is invaluable when debugging complex types
- public suffix list determines eTLD which restricts where cookies can be set
- DOMPurify's parse-serialize-parse cycle can lead to XSS
- AST explorer helps with AST (e.g. writing ESLint rules) and not just in JS
- Haskell's mtl helps manage side-effects, but freer-simple is also good
- Haskell's ReadP allows to easily parse strings into abstract trees
- git-way isn't supperior, there are also "patch theory"-based darcs and pijul