Lauren Tan:智能体写代码时代需要更新对好代码的定义
Lauren Tan 认为,随着智能体已大量编写代码,可维护性和整洁代码优先的传统原则需要更新,2026 年应重新定义 Good Code 的含义。她指出整洁代码历史上以性能为代价,且源于人类维护代码的时代,未来可能发展出智能体友好架构的新原则。
it's very interesting how many replies i've gotten about maintainability and clean code being still important. i would argue that that is no longer true and we all need to update our priors on what Good Code really means in 2026.
clean code has always come at a cost - performance. indirection and making code readable/understandable for a human is not free, it often comes at the cost of worse performance. we have historically been okay with this because of Moore's Law and the fact that most code is not on the hot path.
these principles also came from a time where humans maintained code. it made sense to optimize for humans then, but it makes less sense now when agents are already writing all the code. we will in fact probably discover and come up with new principles: principles of agent friendly architecture (i plan to write more thoughts about this soon)
来源:Lauren Tan · x.com