If you are like me, and you didn't immediately understand why people rave about Copilot, these simple examples by Simon Willison may be useful to you:
If you are like me, and you didn't immediately understand why people rave about Copilot, these simple examples by Simon Willison may be useful to you:
5 Comments
hawkwind@lemmy.management · 2 pts · 3y
I just started using it a week ago and I can’t stop geeking out over it!
My favourite is that it even writes comments well which is the thing most programmers hate the most!
sisyphean@programming.dev · 3 pts · 3y
The biggest aha-moment with Copilot for me was when I wanted to implement tools for my GPT-based personal assistant. The function calling wasn't yet available in the OpenAI API, and I've found that GPT-3.5 was really bad at using tools consistently in a long chat conversation. So I decided to implement a classifier DAG, with either a simple LLM prompt or a regular function in its nodes. Something like this:
I wrote an example of using this classifier graph in code, something like this (it's missing a lot of important details):
And then I started writing
class Decision,class Sequence, etc. and it implemented the classes perfectly!miniu@programming.dev · 1 pts · 3y