News for hackers. Stuff that matters.
Re:Amazon CodeGuru – Preview by EpicEng on Tuesday December 03, 2019 @03:13PM (#21696206)
Our code reviews are far more "is this the right way to solve the problem?" than "hey, you never use that variable you declared." The latter would be picked up by our linter; I'm having a hard time seeing the value proposition here.

>It’s like having a distinguished engineer on call, 24x7

I don't believe that, regardless of how many times they sprinkle in the words "machine" and "learning".

Re:Amazon CodeGuru – Preview by dickjocke on Tuesday December 03, 2019 @03:48PM (#21696548)
I'd be very surprised if the service they've announced is a linter.

The announcement says it can even analyze parts your code that are more computationally expensive than they need to be. I'm not sure I understand the skepticism--surely they have among the largest code repositories in the world. Why couldn't they train models on it to look at best practices and even compare code practices to different metrics.

Re:Amazon CodeGuru – Preview by ShamelessC on Tuesday December 03, 2019 @04:03PM (#21696681)
Isn't this just calculating the cyclomatic complexity?
Re:Amazon CodeGuru – Preview by ralmeida on Tuesday December 03, 2019 @04:42PM (#21697040)
No - OP meant computationally expensive, not cognitively expensive. Two nested for-loops can be O(nˆ2) but can have a cyclomatic complexity as low as 1.
Re:Amazon CodeGuru – Preview by ehsankia on Tuesday December 03, 2019 @03:55PM (#21696615)
It may not be as good as a human, but I highly doubt it's a linter either. It's somewhere in between. If their claims are true, and it has been trained on hundreds of thousands of their own reviews, the AI could have picked up common patterns that are beyond lint but still real mistake a good reviewer would spot.