Hacker News new | ask | show | jobs
by DonsDiscountGas 1040 days ago
The type of question I used to type into google, now I ask ChatGPT. For a language I know well it tends to bring a 5 minute task down to 2 minutes. For a language I don't know well it takes a 30 minute task down to 2 minutes (One weird day the site for a framework was down and I couldn't read the docs, but ChatGPT was there with the right answer).
1 comments

Yeah, and while it's true it can't really solve something you have to think about specific to your problem domain, I find it really good for common implementations. If I'm making a music app and I'm implementing shuffle, I just type

function fisherYates(arr: IPlaylistItem[]) { tab and it's done.

Similarly, I just type

  class SortedSet:
    // api has to have add, rank, cardinality, itemsinrange(make this a fluent api with min max fns returning self each time, and a get to resolve it, and items() to start it)
   // use redis
And it does the zrank, zcard zadd etc figuring out how to call the py-redis API.

Similarly I cba when learning an ORM to find out how specifically it does something by scouring it's docs, I just type SQL or natural language there or the beginnings of it atleast, and let copilot fill out the orm api for me. After which I can just hover over the functions it chained/nested together and the docs pop up and I verify that it did it right, and read any caveats they mention. I pretty much learnt how to use prisma just by seeing what copilot produced.