←back to thread

469 points samuelstros | 8 comments | | HN request time: 0s | source | bottom
Show context
1zael ◴[] No.44998995[source]
I've literally built the entire MVP of my startup on Claude Code and now have paying customers. I've got an existential worry that I'm going to have a SEV incident that will trigger a house of falling cards, but until then I'm constantly leveraging Claude for fixing security vulnerabilities, implementing test-driven-development, and planning out the software architecture in accordance with my long-term product roadmap. I hope this story becomes more and more common as time passes.
replies(6): >>44999056 #>>44999088 #>>44999121 #>>44999144 #>>44999151 #>>45001583 #
foobarbecue ◴[] No.44999088[source]
[flagged]
replies(5): >>44999101 #>>44999317 #>>45001279 #>>45001766 #>>45077840 #
BeetleB ◴[] No.44999317[source]
> I bet you could replace your slop pile with a tenth of the lines of clean code, and chances are it'd be less work than you think.

Actually, no. When LLMs produce good, working code, it also tends to be efficient (in terms of lines, etc).

May vary with language and domain, though.

replies(1): >>44999411 #
stavros ◴[] No.44999411[source]
Eh, when is that, though? I'm always worrying about the bugs that I haven't noticed if I don't review the changes. The other day, I gave it a four-step algorithm to implement, and it skipped three of the steps because it didn't think they were necessary (they were).
replies(1): >>44999429 #
1. BeetleB ◴[] No.44999429[source]
Hmm...

It may be the size of the changes you're asking for. I tend to micromanage it. I don't know your algorithm, but if it's complex enough, I may have done 4 separate prompts - one for each step.

replies(2): >>44999450 #>>44999451 #
2. foobarbecue ◴[] No.44999450[source]
Isn't it easier to just write the code???
replies(1): >>44999679 #
3. stavros ◴[] No.44999451[source]
It was really simple, just traversing a list up and down twice. It just didn't see the reason why, so it skipped it all (the reason was to prevent race conditions).
4. BeetleB ◴[] No.44999679[source]
Depends on the algorithm. When you've been coding for a few decades, you really, really don't want to write yet another trivial algorithm you've written multiple tens of times in your life. There's no joy in it.

Let the LLM do the boring stuff, and focus on writing the fun stuff.

Also, setting up logging in Python is never fun.

replies(2): >>45000538 #>>45001453 #
5. foobarbecue ◴[] No.45000538{3}[source]
Right-- it's only really capable of trivial code and boilerplate, which I usually just copy from one of my older programs, examples in docs, or a highly-ranked recent SO answer. Saves me from having to converse with an expensive chatbot, and I don't have to worry about random hallucinations.

If it's a new, non-trivial algorithm, I enjoy writing it.

replies(1): >>45001623 #
6. a5c11 ◴[] No.45001453{3}[source]
> Also, setting up logging in Python is never fun.

import logging

replies(1): >>45001617 #
7. BeetleB ◴[] No.45001617{4}[source]
Not fun at all.

Configuring it to produce useful stuff (e.g. timestamps, autologging exceptions, etc). Very boilerplate and tedious.

8. BeetleB ◴[] No.45001623{4}[source]
For me, it's a lot easier getting the LLM to do it than browsing through multiple SO answers, or even finding some old code of mine.

Oh, and the chatbot is cheap. I pay for API usage. On average I'm paying less than $5 per month.

> and I don't have to worry about random hallucinations.

For boilerplate code, I don't think I've ever had to fix anything. It's always worked the first time. If it didn't, my prompt was at fault.

replies(1): >>45015583 #