Author: smeans
Date: 2022-03-15
“Technical debt” is one of those terms that experienced developers throw around when people ask them to do something they don’t really want to do. To be fair, many times we don’t want to do something because experience has taught us that short-cuts taken today will cost us in the future. But how much will […]
Author: smeans
Date: 2022-02-24
Ever since the first version of Command & Conquer came out, real-time strategy (RTS) games have been my (not-so) secret vice. I was never able to get interested in chess or go, they were just too structured. But RTS games are like a cross between boxing and chess. You have to make a plan, execute […]
Author: smeans
Date: 2022-01-26
Categories:
Code,
Fun CodeUse this word list to get an edge playing Wordle.
Author: smeans
Date: 2021-08-28
Publish and subscribe (pub/sub) is a powerful pattern that every developer should know. And while cloud hosting is awesome, sometimes it’s nice to take a little finer-grained control over the software that’s hosting your application. While working on moggers.gg, the time finally came to add notifications to the stack. Since the back-end is nginx fronting […]
Author: smeans
Date: 2021-07-26
I’ve been working on a series of videos about an unpublished app of mine called FlipStream, and I wanted to easily insert some information about the current PowerPoint presentation on the first slide. Sadly, PowerPoint doesn’t have a generic field replacement function like Word does. So, either I type some stuff and have to remember […]
Author: smeans
Date: 2021-07-05
When you’re a full-stack developer, you often find yourself mixing and matching destination hosts on your development system. Sometimes you need to run your development codebase against a test back-end server, sometimes you need to spoof the test back-end with your local code base. All of this switching back-and-forth can be tedious, so I wrote […]
Author: smeans
Date: 2021-05-08
One of the very first “big” programs I wrote all by myself was a banner-printing program for my TRS-80. It was all in TRS-80 Basic and I wasted almost an entire carton of tractor-feed paper while I was writing it. It was terrible code, and I’m sure if I saw it today I would cringe, […]
Author: smeans
Date: 2021-05-08
So, as part of my other post about writing a banner printer I ended up going down the rabbit hole of Unicode characters and combining marks. In the process, I found this wonderful blog post by Dmitri Pavlutin that explains the ins-and-outs of dealing with “complicated” text in JavaScript very well. But unfortunately it still […]
Author: smeans
Date: 2021-02-14
Coming up with contrasting, attractive colors for an unknown number of items can be tricky. This post gives a short (10 line) function that returns unique colors for an arbitrary number of items using bit manipulation.
Author: smeans
Date: 2021-01-07
So once again I found myself looking at the documentation for the Python re module, trying to remember the difference between matches and matching groups and I saw a code snippet that was so beautiful that I wanted to break it down and share it. It’s a fully-functional mini-language tokenizer in only 41 lines of […]