One of my stock interview questions goes:
"When picking between dependencies to use in production,
what factors contribute to your decision?"
I'm surprised by how often
I receive an answer along the lines of
"Github stars" and not much else.
I happen to think Github stars is a terrible metric
for selecting production code,
so this post sets out my idea
of a healthier framework to evaluate dependencies.
The SharedWorker interface represents a specific kind of worker that can be accessed from several browsing contexts, such as several windows, iframes or even workers. They implement an interface different than dedicated workers and have a different global scope, SharedWorkerGlobalScope.
wasmati: You should write your WebAssembly in TypeScript - ZKSECURITY
If you know about WebAssembly or Wasm, you might have heard a few different pitches for why you need it:
It’s a low level language for the web. So, it’s faster than JS. Use it to speed up things. It’s a build target. As such, it enables you to use languages other than JS on the web. You could write a web library in Rust or Go! You actually don’t use it on the web, but on the backend!
Discover how to create a fully type-safe pnpm monorepo using NestJS and NextJS. This comprehensive tutorial covers the integration of tRPC as the API layer, providing end-to-end type safety for your full-stack TypeScript application.
Using useMutation to make an advanced toggle in React
Recently, we were adding some new functionality to our dashboard, and we wanted an experience like this:
The basic features are:
* The toggle should make an external request when clicked to change the setting
* While the request is being made, a loading spinner should appear next to the toggle
* If
So, imagine a scenario where you’re working on a project that has its front end (or a mobile app) ready to consume data from the backend. But, the backend is not ready yet. How would you test your front end in this case?
Coding is computer science in the same way that buying something at the store is economics, or talking to your neighbor is sociology. Buying a widget at the store is governed by dynamics described …
Do you know that joke about two little fishes that swim into an older fish? He asks the young fishes how the water is, and they respond: “what’s water?”. The little fishes live an…
As with any ageing blog, _some_ of my outbound links are hitting either 404s or domains that are no longer active.
It's understandable given that my blog is ar…
Tao of React - Software Design, Architecture & Best Practices
I’ve been working with React since 2016 and still there isn’t a single best practice when it comes to application structure and design. While there are best…
The MediaSession interface of the Media Session API allows a web page to provide custom behaviors for standard media playback interactions, and to report metadata that can be sent by the user agent to the device or operating system for presentation in standardized user interface elements.
How do you even web dev without node? A quick introduction to test-driven web development using just the browser
Node is all there is, right?
It is the beginning and the end of all of web development.
We use it to install our tools, even the ones not made in node.