DuckyCoding retweeted
My course, learnastro.dev/, is launching this week! This course represents more than a year of planning, filming, and editing. To celebrate, I'm giving away a free course. RT to enter—a winner will be randomly drawn Thursday, December 5th.
DuckyCoding retweeted
What’s the Difference Between HTML’s Dialog Element and Popovers?
They are pretty similar in both look and functionality, but are have some important differences, slightly different APIs, and functionality. The use cases are also a bit different, so let's have a look!
frontendmasters.com/blog/wha…
DuckyCoding retweeted
Bun wildly simplifies my stack.
I’m rebuilding an internal web app that we’ve had since 2016. So far, I have a grand total of 1 npm runtime dependencies (jwt-token).
Our previous version of this tool, using Next, had 826 (!!!) NPM dependencies.
I also have zero build steps. Just ship the files directly to the server.
I’m using:
- Bun as a JS runtime
- Bun as a package manager
- Bun.serve as a webserver
- Bun’s websocket server for realtime
- TypeScript on server side
- JSDoc on the client side
- REMEMBER: no build steps!
- not even TypeScript in the deps
- HTML via template strings
- CSS
- Hosted on DigitalOcean droplet
- In-memory state (just a JS object)
- JSON file for persistence
- JS’s setInterval for scheduled tasks
- git to deploy
- Cursor to generate and edit code
I’ll talk more about each of these below.













