Hacker News new | ask | show | jobs
by klabb3 1548 days ago
> Think of GitHub copilot as StackOverflow on steroids

This is how I already think of co-pilot, but these steroids seem to be mostly for prototyping.

SO often have comments and context such as "this works with 98% of browsers", "this isn't recommended, try X instead", "this works but can break library code because it changes the global scope", "this stopped working in version X" etc etc. Context like this can be important to take into account depending on what you're building.

1 comments

Start a line with

    // CAVEATS:
    // POTENTIAL ISSUES:
    // Above is deprecated. Use below code instead
and ask Copilot to auto-complete.
// this should never happen

    fn classify-toxicity(text: string) {
      do_work(text)
      while true {}
      // this should never happen
    }