跳到正文
数字商店
原文
dex· @dexhorthy · X·· 2026-10-12AI 评分38
AI 导读

Dex Horthy 认为可以将“难以修改的代码”作为代码 slop 的定义。这种界定涵盖了缺乏类型检查却存在双重真实数据源等反模式,以及模型常写但最终会破坏可读性、可理解性与可维护性的诸多代码结构。

正文

Agree the term is vague. I think it is fine to use “code that is hard to change” as a definition of slop. This folds in “data structures with two sources of truth where a type checker doesn’t exist force updating both them” and lots of other patterns models love that end up ruining readability / understandability / maintainability https://t.co/QpHAvPuf1I

来源:dex · x.com