𒎏Wii 🏳️‍⚧️

𒎏Wii 🏳️‍⚧️ @darkwiiplayer

About: Blog: https://blog.but.gay Mastodon: @darkwiiplayer@tech.lgbt Pronouns: en.pronouns.page/@darkwiiplayer

Joined:
Dec 4, 2018

𒎏Wii 🏳️‍⚧️
articles - 21 total

Up and down again: A missing feature in front end event propagation?

JavaScript and the DOM use the Event API to let elements inform their ancestors of things that...

Learn More 5 3Oct 6 '24

How I write CSS selectors

A non-formal explanation of how I, a CSS hipster, figure out how to structure my HTML and CSS without using established methodologies like BEM or frameworks like tailwind.

Learn More 2 0Sep 2 '24

What's on your desk that makes it *your* desk?

What do y'all have at your desks that truly makes it *your* desk? Anything goes, no matter how fancy or mundane it is!

Learn More 23 13Sep 2 '24

CSS needs a name prefix selector

A bit of a shower-thought kind of idea about selecting all custom elements with a given prefix in just one selector.

Learn More 11 9Aug 27 '24

Faking sessionStorage to keep sites from crashing

Yes, I disable cookies, localStorage, etc. And I'm honestly tired of having to enable it for random websites that have no business saving data on my PC. Here's how I got around that.

Learn More 22 2May 10 '24

CSS Hack: "Named Layers"

Managing values for `z-index` is a pain. Often we resort to really high numbers to make sure things are definitely on top, only to then find out we want something to be on top of it. Here is a convenient hack to make this easier to manage.

Learn More 24 5May 3 '24

Sh*t, I didn't mean to commit that!

We've all been there. We changed something that wasn't meant to get pushed, forgot about it, and accidentally committed & pushed it. Here's a neat trick to help avoid this.

Learn More 11 1Apr 5 '24

Title: Top 20 JavaScript One-Liners That Don't Actually Work

An AI-Generated listicle of the top 20 JavaScript one-liners that, well, *don't* actually work.

Learn More 56 14Feb 15 '24

Callbacks and References: Allowing the Garbage to get Collected

A short explanation with an example of how to prevent event callbacks from keeping objects in memory even when there are no meaningful references to them anymore.

Learn More 10 6Feb 7 '24

DOM is easy: Just make it work like an Array 👍

A few days ago, I built a module that turns an element's child-elements into an Array. Except it isn't a one-time operation: You get a Proxy that you can modify like you would an array, but the actual data stays in the DOM.

Learn More 9 2Jan 12 '24

Extracting a JS library from a snippets repository

A short explanation of how I extracted a single JavaScript file into its own repository from a bigger collection of snippets and mini-libraries, keeping the file's commit history but scrubbing irrelevant commits and other files from the repository.

Learn More 4 1Sep 29 '23

Making the case for Skooma

In this short post I present a simple personal library I wrote for myself to handle HTML generation in JavaScript, compare it to many of its alternatives, and evaluate whether it was worth the time investment of not just picking an existing library.

Learn More 1 5Aug 6 '23

What is CSS @scope and why should I care?

A brief history of Scoping and CSS Scoping CSS to certain regions of the DOM is not a new...

Learn More 14 2Mar 16 '22

An Introduction to Coroutines

A language-agnostic introduction to the concept of Coroutines

Learn More 40 2Nov 20 '21

Type-Writer Component: Magic and Asynchronicity

A detailed description of the development process of an HTML TypeWriter element in plain JavaScript using the custom-element API, meta-programming and some recursion magic.

Learn More 13 2Sep 11 '21

Working Remote: A Few Tips and Tricks

A few of the tricks I've learned over the last few months of working from home

Learn More 4 0Jun 24 '21

HTML Templating: The functional Way

Foreword In this article I will reconstruct my development process for a tiny but powerful...

Learn More 3 0Feb 17 '21

Tabs are objectively better than spaces, and here's why

Here's why I think tabs are objectively better than spaces

Learn More 3 2Feb 15 '21

A rant on change, and the good old times.

A long and poorly structured rant about a series of harmful phenomena I've observed in the world of programming.

Learn More 21 9Nov 25 '20

Using nginx to fake a slow connection

Today I had to test some features of a website on a slow connection and, turns out, neither IE nor Edge give you the option to limit network speed. This is how I used nginx to do it myself...

Learn More 4 0Jul 31 '20

Why I prefer Lua to Ruby

So Lua and Ruby are two rather similar languages in many aspects. There's a lot of articles...

Learn More 15 1Mar 22 '19