Developer builds separate comment draft system after treating replies like posts caused failures
A developer rebuilt their social media dashboard after realizing that comment drafts and post drafts require fundamentally different handling. Unlike post drafts, which can remain relevant for days, comment drafts tied to fast-moving threads become irrelevant within hours, making scheduling features inapplicable. The new system introduces a dedicated comment_drafts table, a five-route backend, and a CLI command, while deliberately reusing existing content discovery infrastructure rather than rewriting it. Each comment draft stores the target post's context — including author, text, URL, and platform engagement data — as a JSON blob to handle cross-platform differences. The completed build is backed by 48 tests and a Posts/Comments toggle in the dashboard UI, though the developer acknowledges the JSON engagement storage is a queryability trade-off to be improved in future iterations.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in