Hacker News 中文摘要

RSS订阅

停止末日刷屏,开始末日编程:用手机终端构建 -- Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

文章摘要

这篇文章介绍了一个名为"doom-coding"的GitHub项目,该项目提供了一份指南,教用户如何随时随地使用智能手机进行编程。

文章总结

智能手机编程指南:随时随地编写代码

这个GitHub项目(rberg27/doom-coding)提供了一个完整的指南,教你如何通过智能手机在任何时间、任何地点进行编程。

项目概述

作者称这种方法为"末日编程"(Doom Coding),灵感来源于"末日刷屏"(Doom Scrolling),但更具生产力。通过5分钟的简单设置,你就可以在有网络连接的任何地方进行编程。

所需工具

  1. 一台24小时运行且联网的电脑
  2. 一部智能手机
  3. Claude Pro订阅

设置步骤

电脑端设置

  1. 在电源设置中禁用睡眠模式
  2. 启用SSH/远程登录功能
  3. 安装Tailscale并登录
  4. 在电脑上安装Claude Code

手机端设置

  1. 安装Tailscale并使用相同账号登录
  2. 安装Termius(移动终端工具)
  3. 记录电脑的MagicDNS地址
  4. 在Termius中创建新主机配置

连接与编程

  1. 在手机上开启Tailscale VPN
  2. 在Termius中选择你的主机
  3. 运行claude命令开始编程

故障排除

  • 检查Tailscale VPN连接状态
  • 确保电脑处于开机且解锁状态

最佳实践

  1. 进度跟踪:通过Claude更新CLAUDE.md记录工作进度
  2. 网站预览:使用Python HTTP服务器预览网页
  3. 数据库查看:使用PostgreSQL应用查看项目数据库
  4. 书签管理:在电脑上收藏常用开发网站,便于手机访问

项目亮点

作者分享了他在台湾时远程连接费城电脑完成原型开发的经历,展示了这种方法的实用性。项目还包含多张实际应用场景的图片,如在跑步时、在俱乐部等不同场合进行编程的示例。

该项目目前获得91颗星和3个分支,欢迎开发者贡献自己的最佳实践。

评论总结

以下是评论内容的总结,平衡呈现不同观点并保留关键引用:

【支持观点】 1. 实用性与创新性 - 认为方案简单实用:"It’s a simple idea but one that hadn’t occurred to me yet" (scottbez1) - 已有成功案例:"this is literally my setup and it is a game-changer" (pmarreck)

  1. 特定场景价值
  • 无电脑时的替代方案:"In some countries this even is the only possibility to code at all" (Aldipower)
  • 应急使用场景:"Using an ssh client to fix a commit failing CI...when I was on vacation" (sjrd)

【质疑观点】 1. 必要性争议 - 认为方案过度复杂:"This seems way overcomplicated" (chankstein38) - 质疑使用场景:"if I’m not behind the computer then I’m not in a productive situation anyway" (FooBarWidget)

  1. 技术替代方案
  • 推荐现有工具:"just install Termux and do it the same way" (functionmouse)
  • 认为VPN非必需:"Tailscale or any other VPN not needed" (syngrog66)

【改进建议】 1. 隐私安全 - 提醒标识符隐藏:"Please mask your identifiers...give out a lot of your info to bad actors" (OakNinja)

  1. 交互优化
  • 指出滚动问题:"Main issue is scrolling. Termius + tmux don’t scroll very well" (auspiv)
  • 建议邮件交互:"Would an email interface to Claude code work better?" (analogpixel)

【文化观察】 1. 工作方式反思 - 期待手机办公革命:"waiting for the first company that will bodly declare 'you can do all your work on your phone'" (cons0le) - 反对效率崇拜:"coding a highly addictive activity and struggle to stop" (urbandw311er)

  1. 技术发展讽刺
  • 批评过度设计:"we’re proposing to add a second layer of remote access" (zahlman)
  • 调侃标题党:"Number 1 on HN for explaining how to connect via ssh" (foobarqux)

关键引用保留中英文对照: - "It’s a simple idea but one that hadn’t occurred to me yet" / "这个简单的想法我却没想到" - "if I’m not behind the computer then I’m not in a productive situation" / "不在电脑前时本就不处于高效状态" - "this is literally my setup and it is a game-changer" / "这就是我的配置,它改变了游戏规则" - "just install Termux and do it the same way" / "装个Termux就能用同样方式完成"