TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How are you using LLMs while coding or everyday work

12 点作者 mraza0075 个月前
I would love to hear your tips on how to efficiently use LLMs while coding or even learning

9 条评论

dignick5 个月前
I use o1, mainly to<p>- write well-defined and self-contained bash, python, powershell scripts to automate tasks<p>- give it an error (often from a build tool) and ask it to help fix it. Sometimes it figures it out, but if not then it gives me ideas, and sometimes this allows me to figure it out myself<p>- ask it how to achieve things at a high level (if I’m unfamiliar with a tool or problem domain). Sometimes this is to validate what I was already planning to do or find a better way to achieve the desired result (I tend to work solo on projects)<p>- text or code transformations<p>- writing regular expressions<p>- I use copilot to improve code writing speed. Sometimes it gets things wrong but overall I find it does speed things up, particularly for repetitive tasks (e.g switch statements with similar cases)
评论 #42353284 未加载
pizza5 个月前
I&#x27;ve found a really nice workflow with Claude for generating high quality diagrams.<p>Say you want to come up with, eg, a diagram depicting clustering with k-nearest neighbors:<p>1. Ask Claude: &#x27;please generate an SVG diagram depicting clustering in k-nearest neighbors, make it look like &lt;details&gt;&#x27;<p>2. Take a screenshot of the generated diagram. Paste it into your next response to ground Claude by letting it see how the code actually rendered. Also, give your:<p>- what changes you want next for next round, eg style this differently, use more colors, replace x with y, etc<p>- what you like and want to keep, or even explore further<p>3. Do this iteration several times<p>4. Once you get somewhere ~80% close to where you want, save the code into a .svg file<p>5. Open it in Inkscape, manually make edits to close the gap<p>The nice thing about this is that many illustrations are actually somewhat tree-structured - they have different parts in them, ie there are child sub-diagrams inside the whole diagram. So, you can recursively do this process again for each additional &#x27;sub-diagram&#x27; you would like to put in the illustration, basically doing breadth-first search to build up the illustration.
评论 #42355700 未加载
muzani5 个月前
AI Agents are already at a useable level - they&#x27;re able to not only tell you what to write, you just have to tick a button and it&#x27;s all done. They&#x27;ll write the commands on the console and run them. They can do many things that are accessed via CLI. They still make mistakes, mostly on an architectural level, and it&#x27;s best to treat them as a junior engineer who got straight A&#x27;s.<p>The bulk of engineering work these days is product-architecture work - engineers have to fully understand the purpose of the product and engineer the code on a higher level to optimize it for what it&#x27;s meant to do. In the past, you&#x27;d need a team to handle a part of a feature on a platform. Now individual engineers can own the entire platform or feature.
Wool26625 个月前
I like to do a few things: - Bounce ideas off it. How would you stucture this and why? - Simplify code i have written in a first draft - review my changes - ask about why something doesn&#x27;t work (if the first answer doesn&#x27;t help the next one won&#x27;t either in my experience) - document this code - write tests for this (very useful, oftentimes gives you great initial tests and an easy test boiler plate to extend with your edge cases)<p>I use it a lot like a pair programmer, just to get out of my tunnel vision. I wrote the code, it can be hard for me to see the flaws since i looked at it all day already. It helps to get a different perspective.<p>The thing I feel is important is that you are ready to throw away anything it generates the second it doesn&#x27;t feel immediately useful. I don&#x27;t retry&#x2F;reword request. I think I use something from about 60% of requests and the rest os discarded fully.
jarl-ragnar5 个月前
A mix of cursor and claude. I’ve just used cursor to help me write a radar data visualisation tool using SwiftUI and Metal. Never used either before.<p>In essence I treated it like a junior dev who already knew the tech stack. So tell it what I wanted to achieve then pair program to get it working. Then iterate to add functionality. Once a feature is working, I could then ask it to help me understand how the tech stack was being used. Lots of fun, and very productive.
dardagreg5 个月前
I&#x27;ve been using a tool called Fabrk AI to build agents that have tools that integrate with any service that has Oauth. I&#x27;ve hooked it up to github, slack and gmail for now.<p>I write issues in a repo and the agent pulls it down, creates a branch and writes the code. Works pretty well. Even integrates with e2b.dev and can run code.<p>This is the template I started with: <a href="https:&#x2F;&#x2F;www.fabrk.ai&#x2F;agent&#x2F;github-demo" rel="nofollow">https:&#x2F;&#x2F;www.fabrk.ai&#x2F;agent&#x2F;github-demo</a>
andrei_says_5 个月前
VIa cursor editor. Makes the LLM interaction transparent and gets out of the way.<p>Mostly for autocompletion - the suggestions recognize patterns as they emerge and propose the same pattern for the rest of the method , similar variables etc.<p>Crude but easy to verify and manage.
keiferski5 个月前
Pretty much any scenario in which I would have asked Reddit or googled for the answer, I now ask ChatGPT. The answers tend to be better and the lack of snarky hostility is refreshing.
Imanari5 个月前
aider-chat with the newest Sonnet model. Loving the new #AI! comment function. I use it for implementing changes, architecture discussions, making one-off scripts to move files etc.
评论 #42358079 未加载