News for hackers. Stuff that matters.
Re:AI Found a Bug in My Code by lmarcos on Thursday November 17, 2022 @03:22AM (#33636272)
The Copilot I would like to use goes like this:

1. I write code

2. Copilot gives me good suggestions about potential improvements on my code

3. I asses the suggestions

4. Back to 1

Re:AI Found a Bug in My Code by ranguna on Thursday November 17, 2022 @03:33AM (#33636338)
That's how I use copilot
Re:AI Found a Bug in My Code by conscion on Thursday November 17, 2022 @03:40PM (#33645333)
How do you use copilot to make suggestions about refactoring existing code?

My understanding was you just give copilot stubs of code and it auto-completes.

Re:AI Found a Bug in My Code by ranguna on Saturday November 19, 2022 @05:32AM (#33668932)
Your point number 2 about improvements on your code: when I start writing a line of code, I already have a good idea of why I'm gonna write next. In this case it's not about copilot refactoring what I wrote, it's about refactoring what I was thinking about writing.
Re:AI Found a Bug in My Code by nigma1337 on Thursday November 17, 2022 @06:18AM (#33637405)
I've been using SonarLint[0] for a while for this, as it not only finds code smells, but also if i do things in a weird way, like doing for(i=0;i>array.length-1;i++){console.log(arrray[i]} instead of just doing for(const element of array).

[0]: https://www.sonarsource.com/products/sonarlint/