pboyd.io

This is Paul Boyd’s blog, where I write about programming and software development.

If this is your first time here, some people enjoyed hearing about this regular expression and this article about passwords.

Latest Posts

Introduction to rewriting Git history

Small Git commits are great when working, but they aren't so great when looking at the history. This post examines the commands to make a clean Git history.

How to avoid one C++ foot gun

C++'s implicit copy and move behavior offer an excellent way to shoot yourself in the foot. Here's an example of how they can create a double-free and how to avoid it.

screenshot of sum
Anatomy of a Useless Program

Do you need to tally numbers from your Apple //e's video memory? No? Well, neither do I. But at least we can have fun with 6502 Assembly.

[,-.]
The regex [,-.]

"[,-.]" matches a comma, a dash or a period, but it shouldn't work.

Flag raising from the John Frum cargo cult.
The Cargo Cult of Good Code

Software design is often reduced to a set of rules and rituals. It's well meaning and sometimes helpful, but it ultimately misses the point.

How Not to Store Passwords

Like it or not, your users depend on you to protect their passwords. Here's a list of the worst things you can do.

Kinda okay generated text

I recently wrote a Markov chain package which included a random text generator. The generated text …

Markov Chains

The first time I ever heard of a Markov chain was overhearing a conversation at work. My coworker …