Monday, November 27, 2023
TIL About shlex.split
Today I learned about shlex.split and it’s really cool.
Saturday, June 17, 2023
Markdown URL Tag Bookmarklets
I started doing most of my writing in a GUI editor and wanted something “closer” than my command-line utility mdut.
Friday, April 21, 2023
Boolean Properties in Python: A Pitfall
I love using class properties as boolean flags, but occasionally forget the @property decorator.
Thursday, March 30, 2023
Getting Nothing Out of a Python Dictionary
A bit of nuance about dealing with null and missing values in Python dictionaries.
Wednesday, March 8, 2023
Dedupe a List in Python, Slowly
A pretty slow way of removing duplicate elements in a Python list.
Thursday, December 29, 2022
Solve the Problem You Have
It’s all too easy to find oneself solving the wrong problems. Here’s how I try and combat that.
Friday, June 10, 2022
Tests Are Docs
Automated tests are documentation, and–if done well—even useful and up to date!
Tuesday, April 12, 2022
✶ Understanding Developer Interruptions
Why interrupting a programmer is even more costly than you think, illustrated by u/nkukard.
Friday, April 1, 2022
Programming Sucks and Is Amazing
It’s true.
Sunday, July 18, 2021
Quick and Dirty Python: HOWTO
Let’s build up small Python script.
Wednesday, March 31, 2021
Quick and Dirty Python
Something I absolutely love about Python is just how well it scales from tiny scripts to complex systems. Here’s an example of the former.
Thursday, January 21, 2021
Django Site Dispatch, Improved
Turns out I like this problem so much I had to solve it again.
Friday, January 15, 2021
Django Site Dispatch
Django’s “sites” framework is quite cool, but what if you need to make some exceptions?
Monday, December 28, 2020
Python’s dict.setdefault Rocks
Python’s dictionaries are awesome, and I just learned about yet another reason that’s the case.
Thursday, October 5, 2017
✶ Modifying a List in Place in Python
A neat (if questionably legible) trick for modifying a list in place in Python, and a more Pythonic solution for the same problem.
Friday, April 14, 2017
✶ Programmer, Developer, Engineer, Lexicographer
What am I even supposed to call myself these days?
Wednesday, May 6, 2015
Drupal Is a Nightmare and Done Is Better than Perfect
Sometimes you have to take your pride in doing things well and distract it while you do something badly. This was one of those times.
Monday, April 13, 2015
✶ Programmer Interrupted
Why interrupting a programmer is even more costly than you think, illustrated by Jason Heeris.
Wednesday, April 8, 2015
Web Development on a Chromebook — Not for Me
I tried migrating to a Chromebook and didn't like it.
Tuesday, December 2, 2014
Sorting with Randomization
Sorting with pure chance, with some elementary stats.