Modern browsers can do a lot more than we commonly know. Today, I’m going to introduce a topic that is familiar in server-side programming, but lesser-known in frontend development: accessing the file system and managing files and directories. Yes, you’re not misread. File system management READ MORE
Full-stack Development with Vite and Hono
With Vite, Hono applications benefit from hot module reloading as well, which provides us with a whole new way of developing full-stack applications. READ MORE
Node.js cluster but with worker threads
We can use worker threads to achieve cluster behavior in Node.js and it saves a lot of system resources, which also means we can reduce our server budget and still have the same performance as the traditional cluster model. READ MORE
Parallelism and multithreading made easy in JS
In this article, I’m going to talk about two functions that I’ve been working on recently, jsext.parallel and jsext.run, these functions allow us to run functions in parallel worker threads or child processes, whether in Node.js, Bun, Deno, or browsers. READ MORE
So many bad decisions are made to JS and its ecosystem
If we truly love and understand a language, we should not just embrace the good parts of it, but also know about its bad parts, and try to avoid them as much as we can. READ MORE
Use PM2 to monitor Golang programs
It is always good to have knowledge across different languages, we can use the tools interchangeably if we know of them. READ MORE
Stop publishing ESM-only packages, do this instead
The primary purpose of updating a library is to fix things, not to break things. READ MORE
Use URL imports before Node/TypeScript supports it
I’m not going to talk about the command-line flag –exprimental-network-imports, which isn’t working well at the time and lacks compatibility support (doesn’t support TypeScript as well). Neither am I going to talk about DNT (Deno to NPM build tool), which isn’t working well with Node.js ecosystem. However, I READ MORE
TypeScript has ‘using’ now, but we should avoid using it
About half a month ago, TypeScript 5.2 was released. In this new version, it introduced a new keyword using , which apparently is borrowed from C#. I’m not going to talk about what it promises or how to use it, rather, I’m going to diss it and READ MORE
A better way to deal with errors in Golang
The following kind of code has always annoyed me: But now I’ve finally found a way to write more efficient code: Check this package for more sugar tricks: https://pkg.go.dev/github.com/ayonli/goext READ MORE