TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Writing about writing about programming

67 点作者 codyd51将近 2 年前

4 条评论

codyd51将近 2 年前
Hi HN, author here!<p>This post is ostensibly about some tooling I’ve written to help me write posts that contain lots of code, while ensuring that the code always produces a valid source tree which matches up with where we are in the prose. This is easy when a post is small, but can become really difficult to manage with a larger piece of work!<p>The bulk of this post, though, is a proof-by-demonstration of the tooling. We implement a little 2048 clone, line by paragraph, and there’s a bunch of checkpoints interspersed throughout the post - and now we’ve implemented input handling! and now we can slide tiles around!<p>At each of these checkpoints, I’ve embedded some live visualizations of the code we’ve written so far. My hope is that the reader can really get a feel for what we’ve built so far, because they can see what works, and what doesn’t work, running right in front of them in the browser. These little computers are taken from snapshots produced by the tooling, compiled to Wasm and executing in the browser.<p>This is my first time providing this level of interactivity in one of my posts, so please do feel welcome to play around with it. I’d love any and all feedback on the experience. Thanks so much!
评论 #36590271 未加载
评论 #36589025 未加载
rcme将近 2 年前
I made a tool to help motivate me write every day. After sharing it with some writers for their feedback, one of them had a really insightful comment: “Wow, wanna-be writers will really do anything to avoid writing!” I had spent a lot of time writing a tool to help me write when I could have been writing instead! Writing is an ancient technology. We more or less know how to do it efficiently. I think it’s important to ask ourselves why we spend time writing tools to write.
评论 #36601091 未加载
legel将近 2 年前
Writing about writing about writing about programming
abathur将近 2 年前
Interesting to see how the writer scratches this itch.<p>I&#x27;ve been managing the same basic friction with multiple incremental copies of the source files, a little shell script to generate diffs&#x2F;logs&#x2F;artifacts, and some make-based tooling to re-run those when sources change (and sync the outputs to a gist so that I can optionally include an instruction for obtaining the source via git). It works, but it&#x27;s obviously suboptimal if I goof something and then have to make the same fix several times.