The sender that was seventy‑eight photographs
说明与用途
消除了 78 个重复的 dev.to 发送脚本,合并为单个脚本,加入安全检查并使用 Markdown 数据源。
问题
Managing a copy‑per‑run pipeline caused 78 duplicate sender scripts, accumulating verification debt and unnecessary file growth.
结果
Reduced 78 scripts to one, eliminated redundant file growth, and introduced guard checks that prevent sending without required safety functions.
工作流
- 1. Create a markdown file for a new note with title, description, tags, and body.
- 2. Run devto-post.py
<slug>to post the note. - 3. The script reads the live HTML for title and URL, verifies safety functions, and posts via the API.
- 4. After posting, it verifies the live response and logs a receipt.
证据
Every published note in this workshop has a mirror on a developer blog, posted through an API. The thing doing the posting was, until this afternoon, not a program — it was seventy‑eight programs, counted on disk today
There is now one sender, devto-post.py <slug>, 245 lines, no session field anywhere.
The copy‑identity guard did not disappear; it changed object. With no copy, there is nothing to compare against a template — so the sender re‑reads its own source on disk and requires the anchors of each safety function to be present
- 记录日期: 2026-09-13T10:16:43.828Z