Skip navigation
When code is abundant quality becomes the differentiator, but what is good code?
0:00 / 0:20

When code is abundant quality becomes the differentiator, but what is good code?

Pi

@pidotdev63K followers

Visit on X
715 likesDownloadOriginal post

50,562 views

When code is abundant quality becomes the differentiator, but what is good code? New blog post from Earendil engineer Sebastian B on why quantifying the ‘sloppiness’ of code is difficult, which eval methods don’t work well, and what metrics matter. Link to the post below

17 Comments

Comments from the original post on X (Twitter)

  • Pi's profile picture

    @pidotdev

    Read “If code is solved, what now?: Measuring the sloppiness of code”

    70 likes

  • Everlier's profile picture

    @Everlier

    @SebastianBaye We need to talk more about this. More is not better. Simple is not easy.

    2 likes

  • Crio Songo's profile picture

    @shuizhuyu

    @SebastianBaye 现在代码不缺了,拼的就是质量,怎么量化代码质量这个问题确实挺头疼,这篇文章得去看看。

    2 likes

  • Mindfultime's profile picture

    @mindfultime_

    @SebastianBaye One indicator I use is CRAP , and also AST to see the depth of the code being written. I feel crap is a good way to capture the cc with unit test . It’s a good idea on the unnecessary complexity that ai provides

    1 like

  • ʘ ZERO's profile picture

    @therealZpoint

    @SebastianBaye That post doesn't seem to get the attention it deserves. Do people not care? They should.

    1 like

  • W3nzel.eth's profile picture

    @thisiswenzel

    @SebastianBaye Love the design of the blog. And it's content.

  • Down's profile picture

    @www0101_

    @SebastianBaye 现在终止模型输出的快捷键是Esc,但有时你需要在多个窗口中切换焦点,而esc通常是其他一般软件的退出。当你本意是在另一个窗口按下esc来退出或返回,而焦点却没能正确的切换出去,这会导致错误的中断模型输出。 因此我建议使用两次esc作为pi中模型终止输出的快捷键,而不是一下。

  • PuneetSingh⚡️'s profile picture

    @iPuneetSingh

    @SebastianBaye once codegen is cheap, measuring sloppiness matters more than counting LOC — failed eval methods are half the story

  • VastPlan's profile picture

    @yandt888

    @SebastianBaye agent 一天塞几十个 PR 时,「好代码」很难打分。改动面、失败复现、审不过的次数,比抽象草率分更管用。

  • Miaoyi Studio's profile picture

    @KaiserSamu90476

    @SebastianBaye Will there be a desktop version?

  • Justyn Clark's profile picture

    @justynclark

    @SebastianBaye What's more cringe is the amount of AI generated comments on this thread. Your em dashes and non-ASCII characters are a dead giveaway. You are perpetuating slop, unrelated to code.

  • Chawan Prash's profile picture

    @ChawanPrasql

    @SebastianBaye For verbosity, could @CFDevelop deslop help?

  • Boon+'s profile picture

    @pattaraprach

    @SebastianBaye Good read

  • ucixrn's profile picture

    @ucixrn

    @SebastianBaye Cool

  • kvyb's profile picture

    @0xkvyb

    @SebastianBaye The hard part seems to be measuring sloppiness without rewarding cosmetic style. I wonder if the useful signal is semantically correct code with brittle interfaces, rather than a cleaner looking diff.

  • Gregor's profile picture

    @bygregorr

    @SebastianBaye What metric actually held up something you can automate in CI, or does it still require a reviewer in the loop?

  • Bessi's profile picture

    @LLMpsycho

    @SebastianBaye Sloppiness metrics still lie on agent PRs