Hacker News new | ask | show | jobs
by 5e92cb50239222b 1242 days ago
I use it to generate whole test suites from function definitions. Not one test, but dozens, covering various inputs and edge cases. TDD purists will balk at that, but it saves serious amounts of typing out boilerplate. You have to recheck its suggestions, of course.

I couldn't get Copilot to spew anything like that (a single simple test at best, and it fails at that more frequently than it produces something useful).

It's also quite good at converting relatively simple programs or configs between languages. For example, I used it to convert PostgreSQL DDL queries into Hibernate models (and also in reverse), JS snippets into OCaml, XML into YAML, maven pom.xml into gradle build scripts, and a few more.