Hacker News new | ask | show | jobs
by EliRivers 469 days ago
Every so often, it saves me a few hours on a task that's not very difficult, but that I just don't know how to do already. Generally something generic a lot of people have already done.

An example from today was using XAudio2 on windows to output sound, where that sound was already being fetched as interleaved data from a network source. I could have read the docs, found some example code, and bashed it together in a few hours; but I asked one of the LLMs and it gave me some example code tuned to my request, giving me a head start on that.

I had to already know a lot of context to be able to ask it the right questions, I suspect, and to thence tune it with a few follow up questions.

3 comments

The biggest timesaver for me so far is composing complex SQL queries with elements of SQL I don't use very often. In such cases I know what I want, but the specific syntax eludes me. Previously solving that has required poring over documentation and QA sites, but finding the right documentation and gradually debugging is tedious. An LLM gets me farther along.
Same here. I had to write a DynamicObject for a DSL-like system in C# to make it behave like Python dicts.

With some LLM help I was done before lunch. After lunch I wrote some additional unit tests and improved on the solution - again with LLM help (the object type changes in unit tests vs integration tests, one is the actual type, one is a JsonDocument).

I could've definitely done all that by myself, but when the LLM wrote the boilerplate crap that someone had definitely written before (but in a way I couldn't find with a search engine) I could focus on testing and optimising the solution instead of figuring out C# DynamicObject quirks.

https://chatgpt.com/share/67cca4ac-2a38-8000-9901-9f56219c06...

… was curious what Gpt-4.5 would do with an absolute paucity of context :)