Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 64
  1. today i learned that an interface can extend a shit ton of interfaces if you want it to

  2. tuples can be unambiguous

    code should be as clear as possible. that's why i'm in love with the concept of named tuples

  3. String is a type alias for [Char] in Haskell.

  4. Bits, bytes and pieces

    understanding bits and bytes from first principles — binary, storage, ASCII, and why computers speak in powers of two.

  5. Remotes

    My mental model around git remotes, and how to push to multiple at once.

  6. Space DIDs, account DIDs, proof chains.

  7. Content-deterministic CIDs?

    How do you tell if a CID points to a file or a directory?

  8. A reward for thinking

    the thrill that comes from actually sitting down, thinking about something, a solution to a problem, and then actualize it.

  9. This frailty

    take care of yourself, while you still can

  10. a thrum of defiance

    an excerpt of what i've been up to since 2023

  11. Buffers/Array Buffers in JavaScript are actually interesting — for now, at least.

  12. React performance: Memoization

    Some stuff/learnings on basic Memoization in React

  13. In this article, I share how you can move FIL from your MetaMask wallet

  14. In this guide, I walk you through how to build something a little bit similar to the "Gym near me" feature on Google Maps.

  15. Adding image info/metadata to Zed

    In this article, I share how I made my first contribution to the Zed editor and the stuff I learned from doing so.

  16. Blog posts with GhostCMS don't show up immediately with Next.js in production but works fine on localhost.

  17. Because we can't exactly pinpoint when a request is complete or successful, the approach above will be inefficient

  18. Trying Zed for the first time

  19. Intercept network requests by monkey patching the native fetch API

  20. For starters, if you want to enable OAuth in your app with Supabase, you would need to use a snippet similar...

  21. Here's how you can use react-spring in a ChakraUI project

  22. And to even improve the experience of devs on the team, it is better to move this process into a CI environment.

  23. Blur images onLoad with Next.js

    Learn how to blur images onLoad with Next.js Image component

  24. Querying a MongoDB collection

    How to query a MongoDB collection in a Next.js app with API routes and SWR

  25. Last year, I was poor, became broke, and now I'm preaching the gospel of pepper.

  26. You might run into a serverless/edge function timeout error with a 502 status code, causing your images to be broken in production.

  27. It is quite easier to build a pagination feature into React app with SWR

  28. Next.js has default support for styled-components now

  29. persisting auth state, choosing the right cookie wrapper based on your project needs.

  30. pageExtensions in Next.js

    configuring page extensions in Next.js

  31. Implementing a confirm email auth flow with Djoser in a Next.js app

  32. check if the current path is the same as what I'm mapping through in my array of navItems

  33. This comparison appears to be unintentional because the types `"admin"` and `"owner"` have no overlap.ts(2367)

  34. In the error modal where the information about the error lies, was a link to a page on how to fix this href interpolation error

  35. Using suspense in Next.js can be tricky sometimes...

  36. Here's how authentication works, in general, The user sends a request through the client — a web browser mostly — to a resource...

  37. it is possible to actually keep state in the browser's URL.

  38. One of the most common issues with keeping API urls or endpoints in environment variables is that anyone can still access this variable

  39. Adding post controllers to my blog

    A tiny detail can appear tiny at times, but can be frustrating as time goes on

  40. Optional props in TypeScript

    Sometimes, JavaScript will be JavaScript, and you may not even catch any error

  41. You should not use the querySelector method to access DOM nodes in React.

  42. This error causes the styles you've written to break on initial render, but when you navigate to another route, it'll behave as normal.

  43. The idea behind this feature is to give the reader a 'heads-up' about the information/article they're trying to consume.

  44. handleChange in TypeScript

    listening to the onChange event is different in TypeScript-based React form components.

  45. A loading component should, in itself, be able to inform the user about the status of their action, it shouldn't show the text 'loading', or a spinner that keeps on going till God knows when.

  46. how we can use custom CSS properties (variables) to store state.

  47. The router.push method is from the Next.js useRouter hook, which is used to navigate to a new URL.

  48. I've never been a fan of TypeScript.

  49. 2022 — you evasive psycho!

    I've had so many experiences with failure, but this one was just too much!

  50. There aren't so many resources around integrating a static site like mine with MongoDB.