‹ BackHN Continuity

Thread

ImpactGate: A merge gate that scores the structural decay AI adds

37 points · 48 comments · sagenschneider

  1. appleappleapple · · focus · HN ↗
    Nice idea. Our new CTO brought in a tool he made for analyzing cyclomatic complexity and it’s been useful since we’re a heavily AI-forward shop.

    BTW, you can avoid your comments being flagged and killed by writing them yourself! I know it’s tempting to offshore it to AI (especially after you’ve vibe-coded a whole project) but some genuine human communication goes a long way.

    1. j_bum · · focus · HN ↗
      Is it public? Would love to try it!
      1. ecshafer · · focus · HN ↗
        Sonarqube has existed for like 20 years. There's doezens of cyclomatic complexity, linter, and cve scanner tools though.
        1. sagenschneider · · focus · HN ↗
          Yep, not looking to replace cyclomatic complexity. Looking to use it in what I've researched is a novel new way.

          Instead of focusing solely on the complexity of the thing you change. Include the context around what you are changing also.

          This allows the Change Impact formula to differentiate between two different files of the same length. One is a complex god class with high CC. The other is an entity module that is simple but just has a lot of methods due to properties. Adding to the god class really should warrant a refactor. Adding to the entity class is just another field to store for the entity. The Change Impact formula can differentiate and point to the god classes.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.