Hacker News new | ask | show | jobs
by piva00 868 days ago
I use for well defined tasks which I know I'd find the answers by looking at documentation (and which I know how I'd approach but can't remember the details), so instead of rummaging through libraries' docs (or API docs), looking into a language's syntax I don't use everyday (looking at you, SQL JOINs), etc. I will craft a prompt to ChatGPT to get me through the 80% of looking into docs.

It will eventually hallucinate some property that doesn't exist, but since I kinda know what I'm looking for and just need the information condensed to move further I'll then verify the API/library docs with the given output and find my way through much faster than I would by starting on my own.

To me it does not become a code generator aside from boilerplates and starting points in languages I'm not an expert, it even helps me a lot to learn a new language (like Rust) where I can get a simple skeleton out of it for a task I want to do and code on my own later, just returning to ChatGPT to ask things like "how could I open a file with write access in <language I don't normally use/I'm learning>".

It's never helped me with any business logic properly (and I don't feed it my company's code, I will write a more generalised case as a prompt, or swap to an analogy to what I'm trying to do), it probably needs a lot more context that I'm not happy nor comfortable to feed into OpenAI's training dataset.

I'm been playing with Mistral's models locally through ollama and it's quite promising what one can do with a local model that you can feed a lot of context without caring about where private data is being stored, I see a big future if those models keep evolving as code assistants.