5 comments

  • n4r934 minutes ago
    There&#x27;s been a lot of talk about the purpose of code review recently. It makes sense in the face of AI. Heres a link that was submitted a little while ago: <a href="https:&#x2F;&#x2F;mathstodon.xyz&#x2F;@mjd&#x2F;115096720350507897" rel="nofollow">https:&#x2F;&#x2F;mathstodon.xyz&#x2F;@mjd&#x2F;115096720350507897</a><p>And in response I wrote a non-exhaustive checklist of things that a code review can look for:<p>- Does it functionally achieve what it sets out to (as per tacker issue or PR description)?<p>- Does it have extraneous code? Leftover debug prints, private API keys etc...<p>- Does it have any obvious defects? Memory leaks, un-handled edge cases, security flaws, obsolete API calls, etc...<p>- Could it be more understandable? Add&#x2F;remove abstractions, better variable&#x2F;method names, more&#x2F;less functional etc...<p>- Is the style consistent with the codebase and&#x2F;or style guidelines?<p>- Are there obvious performance improvements? Hashset instead of list, lazy evaluations, etc...<p>- Is it sufficiently well tested?<p>I think LLMs are <i>okay</i> at most of these, and worst at the first.
    • anarazel13 minutes ago
      - Do we want this? Cost&#x2F;Benefit etc<p>- Is the change architecturally right?<p>Particularly the latter LLMs seem still pretty useless at.
  • LunicLynx38 minutes ago
    Unfortunately this often represents the only feedback given by the people in those „higher“ positions.<p>„The indent is wrong here“<p>„Comments should end with a period“<p>Because this kind of feedback is and was always easy.
    • parpfish31 minutes ago
      If you get feedback like that, it’s time for your team to get automated linting&#x2F;formatting
  • hazard22 minutes ago
    Pangram check on the article: 94% of this text is AI
  • bengold1433 minutes ago
    I couldn’t agree more. Code review is integral to engineering, to sharing system understanding, to building sustainable systems.<p>Something is missing in the new ai bot review paradigm we’ve all sleepwalked into.<p>I’ve been building Archme.io for this reason. PR reviews for the age of AI
  • abstractspoon18 hours ago
    I think this applies to the writing of code as well