HACKER Q&A
📣 dpflan

What is your GitHub Copilot (code LLM assistant) workflow?


Are you using a code LLM assistant? How do you use it? How have you changed your coding/software development routine to effectively utilize and integrate this tool into your day-to-day?

This post from today by Martin Fowler is pretty cool: An example of LLM prompting for programming

- https://news.ycombinator.com/item?id=35612494

- https://martinfowler.com/articles/2023-chatgpt-xu-hao.html


  👤 cloudking Accepted Answer ✓
I use it when I think it would have enough context in the current code to write a new function/class etc, and then defining it in a plain English comment:

// function that does XYZ

Hit enter, see the function suggestion and hit tab to accept it if it looks good. Sometimes I will reference specific variables or methods I want to it to use, again in the code comment. Which is much faster than writing the code block from scratch.

I also accept small autocompletes from it when I'm writing the code myself, it seems like a more powerful autocomplete in general.