AI 摘要The article describes fixing a long-tail bug in the author's 'human sorting' function, where file names containing numeric runs longer than Python's 4300-digit int conversion limit (added in 2022 to prevent denial-of-service attacks) caused a TypeError because ValueError was misinterpreted as 'not a number.' The fix converts only the digit parts identified by re.split, returning float('inf') for over-long digit runs, while noting that isdigit()-based approaches fail due to Unicode discrepancies with the \d regex. A later update presents Jeff Epler's cleverer alternatives, including parsing digit runs as base 16 (which has no length limit and sorts identically) or using (length, value) tuples, though the author hasn't benchmarked them.
AI 摘要To celebrate Nat's 37th birthday, the family hosted a cupcake-baking party at his group home, bringing box mixes, sugar-free options for his diabetic housemate, and decorating supplies so all the housemates could join in. Everyone wore aprons and chef's hats, helped mix and bake, and decorated cupcakes—surprisingly all choosing vanilla icing—though the family forgot candles and singing 'Happy Birthday.' Reflecting on the day, the author expresses gratitude that Nat has found a warm living situation where the housemates feel like family and the staff like friends.
AI 摘要The author describes blog features they built: since old technical posts may contain outdated details, posts older than five years automatically display human-style age descriptions like 'nearly 12 years' followed by a 'Be careful' warning. Posts that never go stale can be marked 'evergreen,' replacing the warning with 'but it's still good,' which the author recently made customizable per post. They conclude that owning their own site lets them create small, seemingly pointless features that bring them joy.
AI 摘要Inspired by an attack where a Dropbox-shared git checkout carried active malicious hooks, the author built zsh chpwd functions to make git hooks visible when entering a repo. The first function announces any executable, non-sample hooks in a repo's hooks directory (once per repo to avoid noise), and a second warns when a .pre-commit-config.yaml exists but the pre-commit hook isn't installed. Together with a startup check for the initial directory, these functions keep the author aware of active hooks and caught at least one project where pre-commit had been forgotten.
AI 摘要The article describes the 'Expert Asterisk,' a common pattern in online help discussions where experts assisting beginners add obscure, rarely-used details and tangents that distract learners from their original questions. Using a git help exchange as an example, the author shows how such additions—while well-intentioned and potentially useful to advanced users—can derail a novice who lacks the context to sift important information from esoteric footnotes. The author advises experts to resist the urge to add tangents, instead focusing on understanding the beginner's actual situation and mindset so their help can truly be heard.
AI 摘要The author describes their 'Silence is Golden' lightning talk at PyCon US 2026, whose message is to leave quiet time in discussions so reluctant speakers have a chance to participate. As someone who speaks easily, the author admits they must consciously remind themselves to hold back and create space for others. They were pleased to extend the well-known Pac-Man Rule from space to time, giving the talk an engaging hook rather than just a lecture.
AI 摘要The author introduces Calcium, a tiny language implementation built to demonstrate how languages like Python work, containing a tokenizer, parser, AST, compiler, bytecodes, and execution engine in about 300 lines of code. It was created to help explain that Python is both compiled and interpreted, since Python code compiles to bytecode rather than native CPU instructions. The author also suggests it could serve as a simple starting point for others wanting to experiment with language implementation.
AI 摘要The author proposes 'caller-specific coverage'—measuring a function's coverage separately for each distinct call site—to recover detail lost when repeated argument-checking code in their BASIC interpreter was refactored into a shared helper function. They built a proof-of-concept decorator using coverage.py's dynamic contexts (requiring a small change so switch_context returns the previous context), which successfully shows per-caller coverage in the HTML report. Remaining improvements include post-processing to identify which callers missed lines, supporting sub-contexts to avoid overwriting test names, and configuring the feature externally rather than requiring a decorator in the source code.
AI 摘要The author describes Acidica, a hobby BASIC interpreter they built as a vacation-week project, based on the Vintage BASIC specification and partly motivated by nostalgia for early computing. They reflect on BASIC's primitive design quirks, their relaxed development choices (integration tests only, no AI, minimal type checking), and the enjoyment of working without deadlines. Possible future steps include using the project as a testbed for development ideas, adding a BASIC-to-Python transpiler, or simply leaving it as done.
AI 摘要The author reflects on his 86-year-old mother's cognitive decline—she was once a bold programmer, feminist bookseller, and PhD who came out as gay in the 1970s, but now no longer uses computers and has become mild, accepting, and increasingly detached from familiar people and places. At a family gathering, she failed to recognize her sister's house, ate with her hands, and, while everyone struggled with a missing ride-share car, tried to leave saying she wanted 'a place of certainty.' The author finds the phrase poignant, seeing it as capturing both her disorientation in a world growing less understandable and everyone's universal longing for certainty in the face of inevitable decline.