Standard Search
About 18 results
https://mikebifulco.com/posts/reduce-nextjs-bandwidth-with-link-prefetch · 9 Feb 2026
Next.js Link prefetching quietly burned through 15 GB of bandwidth on my Vercel-hosted blog. Here's how I fixed it.
https://rednafi.com/go/avoid-context-key-collisions/ · 22 Oct 2025
Master Go context keys with custom types, avoid collisions using empty structs, and learn accessor patterns for safe request-scoped values.
https://afloat.boats/posts/man-vs-vibes · 22 Aug 2025
Got nerd sniped into missing a workout, and improving the performace of rendering 500k rectangles by 10x.
https://bruce.leaflet.pub/3mmvzq53xc22s · 9 Mar 2025
Motivation Why would I do this? For my latest project, mapvoyage, I need to serve text files (wikitext to be specific), directly to the user if possible, as well as in a separate function select one wikitext file to display from a list of wikidata ids that...
https://rednafi.com/go/io-reader-signature/ · 8 Feb 2025
Understand why io.Reader takes a byte slice parameter instead of returning one. Learn about heap allocations and buffer reuse in Go streams.
https://rednafi.com/python/module-getattr/ · 3 Nov 2024
Speed up Python module imports with __getattr__ from PEP 562 for lazy loading, deprecation warnings, and dynamic attribute access.
https://cbennell.com/posts/filtering-by-association-count-in-complex-models-in-rails · 12 Sep 2024
Filtering complex associations in Rails can get tricky: built-in methods like where.associated don’t always provide efficient results. Here’s how I used a SQL subquery inside Rails scopes to make a slow page fast again.
https://rednafi.com/go/dysfunctional-options-pattern/ · 6 Mar 2024
Discover a simpler alternative to functional options: method chaining with builder-style configuration that's 76x faster and easier to understand.
https://rednafi.com/python/memory-leakage-in-descriptors/ · 16 Jul 2023
Prevent memory leaks in Python descriptors by using weakref to avoid hard references that prevent garbage collection of validated objects.
https://jakebailey.dev/posts/pnpm-dt-2/ · 26 Mar 2023
DefinitelyTyped contains over 8000 packages. What could go wrong?