跳转至内容
  • 版块
  • 最新
  • 标签
  • 热门
  • 世界
  • 用户
  • 群组
皮肤
  • 浅色
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • 深色
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
AI订阅指南

AI订阅指南

  1. 主页
  2. 项目展示
  3. Disposable code is a psyop by people who don't maintain anything

Disposable code is a psyop by people who don't maintain anything

已定时 置顶 已锁定 已移动 项目展示
7 评论 3 发布者 1.1k 浏览 1 关注中
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • 抚 离线
    抚 离线
    抚瑶琴水上
    编写于 最后由 编辑
    #1

    来源:https://dev.to/adioof/disposable-code-is-a-psyop-by-people-who-dont-maintain-anything-33kg


    There is an increasing trend on the internet stating that in the AI era, code longevity is "questionable if not problematic". The argument continues, "if AI can rewrite everything at 10x speed, why write long-lasting code at all?" I believe that's an illusion. And I think it's mostly coming from people who don't maintain anything.

    Here is what those who prefer "disposable code" overlook. An established codebase is not only a set of logical operations. It's a fossil record of every weird thing that went wrong. That strange if statement on line 412? It was needed because during DST transitions, on Tuesdays, a null field is returned by one of our payment providers, still not sure why, nobody wrote that down.

    Edge cases don't live in tickets. They live in code. Institutional knowledge isn't in someone's head. It's in the diff history. "Just rewrite it" assumes you know what the old code was actually doing. You usually don't.

    Typing was never the problem. It was about figuring out what to type in the first place.

    Considering code as something that can be thrown away works only when you also consider your users, your uptime, and your institutional knowledge as something that can be thrown away as well. Every rewrite is a risk window. Every risk window is a chance for regressions. Every regression is a user who trusted you and got burned.

    Uptime isn't a feature. It's a promise. Disposable code breaks promises. Users don't care how your code was generated. They care that it works. Every single time.

    I keep asking myself: who does the "code is disposable" narrative serve? Not the engineer who gets paged when the rewrite drops a critical edge case. Not the team who has to give up months of accumulated knowledge. Certainly not the users. It serves people selling the idea that AI makes everything trivially replaceable. Maintenance is the reality of a software product.

    Write code that a human can understand and maintain, but also leverage AI to assist in code generation. Use AI to enhance the durability and maintenance of your software systems, not as an excuse for rebuilding everything from scratch every few months.

    Durability isn't the opposite of agility. It's what makes agility sustainable.

    (此帖无评论)


    1 条回复 最后回复
    11
    • P 离线
      P 离线
      paladin22
      编写于 最后由 编辑
      #2

      支持多语言吗?想做国际化的话可以帮忙翻译。

      1 条回复 最后回复
      6
      • Y 离线
        Y 离线
        yaxis
        编写于 最后由 编辑
        #3

        这个有点厉害,思路很清晰,UI 也做得干净。

        1 条回复 最后回复
        3
        • 弈 离线
          弈 离线
          弈棋局煮酒
          编写于 最后由 编辑
          #4

          看了 demo 视频,用户体验做得不错。

          1 条回复 最后回复
          5
          • 初 离线
            初 离线
            初醒念旧
            编写于 最后由 编辑
            #5

            很棒的项目,已 star!期待后续更新。

            1 条回复 最后回复
            4
            • S 离线
              S 离线
              storm
              编写于 最后由 编辑
              #6

              很棒的项目,已 star!期待后续更新。

              1 条回复 最后回复
              1
              • 清 离线
                清 离线
                清风余温
                编写于 最后由 编辑
                #7

                很棒的项目,已 star!期待后续更新。

                1 条回复 最后回复
                2

                你好!看起来您对这段对话很感兴趣,但您还没有一个账号。

                厌倦了每次访问都刷到同样的帖子?您注册账号后,您每次返回时都能精准定位到您上次浏览的位置,并可选择接收新回复通知(通过邮件或推送通知)。您还能收藏书签、为帖子顶,向社区成员表达您的欣赏。

                有了你的建议,这篇帖子会更精彩哦 💗

                注册 登录
                回复
                • 在新帖中回复
                登录后回复
                • 从旧到新
                • 从新到旧
                • 最多赞同


                • 登录

                • 没有帐号? 注册

                • 登录或注册以进行搜索。
                Powered by NodeBB Contributors
                • 第一个帖子
                  最后一个帖子
                0
                • 版块
                • 最新
                • 标签
                • 热门
                • 世界
                • 用户
                • 群组