News for hackers. Stuff that matters.
Re:Github Copilot Wants to Play Chess Instead of Code by rhacker on Thursday January 13, 2022 @03:08PM (#29926102)
The most amazing thing about that context thing is that in VSCode it actually uses your current debugging session as well. For example I have a FHIR resource with a resource_type of "Medication", but its a polymorphic type in Python. Copilot, looking at the other code I wrote and the current paused debugger will actually recommend my next line of code be based on that debug session and recommend:

if type(resource) is Medication:

I think I'm writing 20% of my code these days. I fix up about 30% of the suggestions, unless it's a strip of boilerplate which it almost never gets wrong.

Everything has a unit test in this python codebase so I make sure that it's all correct.

Re:Github Copilot Wants to Play Chess Instead of Code by knicholes on Thursday January 13, 2022 @07:20PM (#29928924)
The next step will be to suggest polymorphism and avoid the type checking all together!