Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's actually quite a lot better than a Google search. Yesterday I gave it the output of SQL ddl and told it to write me a script in Go that reads that from a CSV, then I asked it to generate a sample CSV to verify the script.

How is that different from googling? Lots of articles won't bother to include import and the structs they use definitely won't match up to your use-case because their dataset if different. What if my use-case is a bit strange and I need to embed the file instead of reading from the file system, for example? I can ask Chat GPT and it will update the example program, using my exact file name and the variable names for the problem I've described and the program runs as written!

I don't write much Go (so I don't actually care to commit the hello_world.csv ritual to memory), but I know enough about it to verify that the program doesn't have any glaring issues and make my own tweaks as necessary. Saved so much time for me in this scenario.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: