Code can be fun and creative. Sometimes I have to rein myself in otherwise I’m prone to writing creative code for creativity’s sake. That is not always the most readable. Occasionally though the fun solution is the best.
I was updating my Deno Audio Duration package to publish it on JSR and I was reminded of […]
Until now Deno did not have or need a package registry. That may be changing with JSR — one JavaScript Registry to rule them all…
In the early days of Deno you would import dependencies from a URL:
This freaked developers out. But it’s actually no less secure than installing from npm. It’s just more direct and […]
I want to see more developers experiment with how they build their websites! Don’t just npm install a blackhole. Roll your own personal solution. It’s fun and rewarding!
Where it Started
My website is a collection of Svelte components and Markdown files that combine to build over 400 pages. Over the years I’ve gone through a wide […]
Now that I’m in my 15th year of blogging it’s past time I spruced up my RSS feed. I’ve also launched a new bookmark blog. Perfect time to revisit RSS.
For the last 15 years my RSS feed was an unreadable mess when viewed in a browser:
Obviously it’s meant to be viewed in an RSS reader […]
You know String.prototype.replace() in JavaScript?
This method takes two parameters: pattern and replacement.
Pattern is usually a string or regular expression. Technically it can be any object with a Symbol.replace method (like a RegExp).
Replacement is either a string or function that returns a string.
Using a regular expression gives access to capture groups in the replacement.
Here I’m capturing […]
It’s finally happened! My bookmark blog is back!
🚀 Cotton Coder is live!
The curated bookmark blog of web dev curiosities
Cotton Coder is launching as a small project with large ambitions. It starts life as my new bookmark blog. A blog I’ve been meaning to revive for a very long time. I used to curate a blog […]
Have you ever inlined SVG icons inside a CSS stylesheet?
It can improve performance by reducing HTTP requests if done selectively.
I do this all the time using a custom property and background-image to make reusable icons. One downside is the inability to change or transition colours easily. I’ve recently discovered a new technique that solves this […]