一位Haskell程序员在Hacker News上分享了在大语言模型时代保持编程乐趣的实践方法。1这位作者主张采用"You are the coder"的工作理念,即开发者应当保留代码编写工作,转而让AI处理规划、研究、代码审查等辅助任务,而非完全依赖AI生成代码。1作者声称本文100%由人工撰写,无任何AI辅助。1
该工作流的效果与纯AI使用相比存在差异。作者采用此方法后生产力提升约两倍,但这低于声称使用LLM代码生成的开发者宣传的效果。1作者强调这种人类中心的方式能够实现适度的生产力提升,同时规避LLM生成代码质量不稳定、可读性差、维护困难的问题,并避免完全依赖导致的技能退化和代码库质量下降。1
关于AI工具的具体应用场景,作者认为LLM适合用于代码清理、小任务、常规工作和低风险重构,但不宜用于从零开始设计复杂系统。1作者建议建立自动化审查周期对代码进行LLM审查,即使对开发者自己的代码也应如此。1在团队协作中,作者强调应优先保持人类沟通,不要直接发送完全由LLM生成的PR。1此外,作者指出Token限制应视为"服务中断"而非使用者过度使用,开发者需提前准备离线工作方案。1
A Haskell programmer has outlined strategies for maintaining the pleasure of coding while working alongside large language models, arguing that developers should retain hands-on code writing rather than outsource it entirely to AI.1 The author asserts that the core principle—"You are the coder"—means reserving code authorship for humans while delegating AI to ancillary tasks such as planning, research, code review, and refactoring.1
According to the author's experience, this human-centered workflow has yielded approximately double productivity gains, a more modest improvement compared to productivity claims from those relying predominantly on AI code generation.1 The author identifies appropriate use cases for LLM assistance, including code cleanup, small isolated tasks, routine work, and low-risk refactoring, while cautioning against using AI for designing complex systems from scratch.1 The author emphasizes that AI-generated code often suffers from poor readability and maintenance difficulties, and warns that complete dependence on code generation can erode developer skills and degrade overall code quality.1
The author recommends establishing automated review cycles and applying LLM-based code review even to developers' own work, while cautioning against sending pull requests composed entirely of AI-generated code without human review in team settings.1 Additionally, the author notes that token limitations represent service interruptions rather than user overuse, and advises developers to prepare offline workflows in advance.1 The author states that this article was written entirely by hand without AI assistance.1
评论
还没有评论,欢迎留下第一条。