frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: How are you productively using Claude code?

14•nocobot•12h ago
I tend to be sceptical when it comes to LLM based coding tools but many people seem to be raving about huge productivity gains which I wouldn’t mind as well.

However when trying cc it left me vey disappointed. For context I’m working on a relatively greenfield rust project and gave it tasks that I would consider appropriate for a junior level colleague like:

- change the return type of a trait and all it’s impls

- refactor duplicate code into a helper function

- replace some of our code with an external crate

it didn’t get any of them correct and took a very long time. Am I using the tool wrong?

How are you using cc or other agentic tools?

Comments

JaggerJo•8h ago
Same, tried Claud code over the past month. Let it do different tasks.

It’s useful as an built-in quick docs / search that can spit out small code fragments.

Every time I gave it more space results were disappointing.

johnecheck•8h ago
I've been using Claude Code to decent results. Its not 10xing my productivity but it can do tasks like that. I haven't done much to configure it, I just regularly clear the context and @reference the relevant files.

What language are you using?

runjake•1h ago
The original post says Rust.

> I’m working on a relatively greenfield rust project

I haven't had good luck using LLMs with Rust, but it may just be me.

ktallett•8h ago
It greatly depends on what I am doing. If I am using common libraries especially when using JS it is particularly handy, similar with Python. When you branch out into the more obscure it's accuracy and knowledge ends up being unsurprisingly limited.
perilunar•7h ago
I used Cursor (with ChatGPT) for the first time last week to build two web apps and it worked well. Working results first go, then a few hours of tweaking and adding features. These were simple CRUD apps using PHP and SQLite on Apache. I had to clean up the front-end code a bit, but it all worked. I’m not strong on SQL, so it was neat to have all the database code working on the first pass, and helped me keep up the momentum and finish them, instead of getting bogged down and frustrated. Definitely plan to keep using Cursor, and try other AI tools.
bGl2YW5j•7h ago
Also feeling let down by it.

Have been using it to build a DSL in JS. Greenfield. I’ve followed the commonly touted “plan, act, evaluate” approach; I’ve got it to generate a clear project vision, scope, and feature checklist. Then told it to refer to that for context. I’ve been descriptive and explicit in my prompting, way more so than previously.

It has gotten the broad strokes right, I’ve got an exceptionally barebones DSL, made up of 5 entities, working…just.

It has now started to spin its wheels on small issues and can’t fix them without breaking something else. The codebase isn’t even big (~8 main functions across a few files). Troubleshooting the code is difficult because it’s convoluted and I lack the same intuition for it I would have had I written it myself. I’ve decided to rewrite everything with less control ceded to the LLM.

When it works, it feels great. When it doesn’t, which is often, the spell is broken and I feel I’ve wasted a bunch of time and have not much to show for it.

whinvik•6h ago
Maybe someone has better insights but what I have seen is that Claude Code is not amazing on greenfield. I mean it will generate something, which will probably work, but the solution can often be over-engineered, or hacky.

I think we have to build up enough code for it to start appearing like brownfield, before Claude knows how to engineer correctly. Which kind of makes sense if we view Claude Code as a junior engineer with infinite stamina.

I also actually like to spin up Claude Code and Gemini in parallel to see what each one comes up with. Gemini will often do the simpler approach, but not often fully featured, and my solution often ends up taking the 2 solutions and refining in Cursor to come up with the final solution.

Sevii•3h ago
I recently used claude code and go to build a metric receiving service for a weather station project. I had it build all the code for this. It created the SQL statements, the handlers, the deployment scripts, the systemd service files, the tests, a utility to generate api keys.

I think you are using the wrong language to be honest. LLMs are best at languages like Python, Javascript and Go. Relatively simple structures and huge amounts of reference code. Rust is a less common language which is much harder to write.

Did you give claude code tests and the ability to compile in a loop? It's pretty good in go at least at debugging and fixing issues when allowed to loop.

richk449•3h ago
How do you give cc the ability to compile in a loop?

Ask HN: How much of OpenAI code is written by AI?

5•growbell_social•33m ago•0 comments

Is making the rust compiler slow a billion dollar mistake?

3•breatheoften•1h ago•0 comments

Open-source STM32 autopilot for long-range fixed-wing UAVs (SmartNavX)

5•Talalalsohimiy•3h ago•0 comments

Ask HN: Could the C64 startup screen have encouraged more users to learn BASIC?

5•amichail•5h ago•4 comments

Ask HN: How are you productively using Claude code?

14•nocobot•12h ago•9 comments

Ask HN: How did Soham Parekh get so many jobs?

314•jshchnz•1w ago•415 comments

Ask HN: How do you get first 10 customers?

11•jcofai•1d ago•16 comments

Ask HN: Has anybody gotten a Node.js MCP server to work with HTTP?

3•rglover•19h ago•4 comments

Attended Windsurf's Build Night 18 hours before founders joined Google DeepMind

7•schwentkerr•1d ago•0 comments

Ask HN: Looking for a directory of PS1 command prompts. Like awesome lists

3•simplecto•1d ago•3 comments

Ask HN: Are there any tools for tracking GPU prices over time?

2•jepeake•23h ago•4 comments

Ask HN: Where are the AI-driven profits or promotions?

39•arduinomancer•16h ago•43 comments

Tell HN: I Lost Joy of Programming

91•Eatcats•5d ago•124 comments

Co-founder exiting after pivot – what's a fair exit package?

42•throwaway-xx•4d ago•79 comments

Ask HN: Bug Bounty Dilemma – Take the $$ and Sign an NDA or Go Public?

22•deep_thinker26•4d ago•14 comments

Ask HN: Worth leaving position over push to adopt vibe coding?

81•NotAnOtter•1w ago•94 comments

Helpful function to find memory leaks in JavaScript

3•EGreg•3d ago•1 comments

Google fails to dismiss wiretapping claims on SJ, settles with app users

46•1vuio0pswjnm7•4d ago•8 comments

Ask HN: People who work different timezones than your company. How sched?

17•tetris11•5d ago•27 comments

Ask HN: How to Create Data Flow Diagrams?

4•shivajikobardan•2d ago•2 comments

Ask HN: Good non tech companies to work at

4•nzmkk•2d ago•14 comments

Ask HN: Does your on-call rotation suck? Can I join it?

11•asciifree•4d ago•23 comments

Ask HN: What techniques do you use to remember complex concepts and theories?

5•anonymzz•2d ago•4 comments

Ask HN: What's the verdict on GPT wrapper companies these days?

15•NewUser76312•6d ago•19 comments

The computational cost of corporate rebranding

4•rileygersh•2d ago•0 comments

Ask HN: What do you do with your list of articles links?

4•electricant•1d ago•10 comments