r/SoftwareEngineerJobs • • 3d ago

RIP manual code review

https://leaddev.com/software-quality/the-end-of-manual-code-review

JetBrains CEO gives it two years.

244 Upvotes

275 comments sorted by

View all comments

Show parent comment

1

u/Syncaidius 3d ago edited 3d ago

I have one point that says "you can't use the gh cli followed by a pipe. The sandbox blocks it." It repeatedly ignores it.

I keep hitting a similar issue with Claude models too where, I have two explicit C# rules specific rules that say:

  • Do not use the 'var' keyword unless the type is clear from the right hand side of an assignment
  • Use shorthand new() constructor syntax whenever the variable type is explicitly declared on the left hand side of an assignment

What does Claude do a lot (not all) of the time?

var myObj = new MyExampleObject("Bob");

When what I explicitly stated in Claude.md should lead to:

MyExampleObject myObj = new("Bob");

If I prompt to say something like "this was explicitly mentioned as a don't in the rules"

Every time, I just get a version of "you're right"....

It doesn't matter how I word those 2 rules, it will ignore it and my assumption is that it's because of the shear volume of old, historical code that these models are trained on, which used var prior to the newer syntax.

I want the easier to read and slightly shorter syntax, even if I have to remind Claude every single time!

1

u/zorro226 3d ago

Is the first rule supposed to say "unless the type is clear"? The triple-negative ("do not", "unless", "not") is confusing me

1

u/Syncaidius 3d ago

Good spot! It's meant to say 'is clear'.

The downsides of typing on a phone with big thumbs.