Most active commenters
  • foobarbecue(5)
  • BeetleB(5)

←back to thread

469 points samuelstros | 16 comments | | HN request time: 0.226s | 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 #
1. foobarbecue ◴[] No.44999088[source]
[flagged]
replies(5): >>44999101 #>>44999317 #>>45001279 #>>45001766 #>>45077840 #
2. 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 #
3. 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 #
4. BeetleB ◴[] No.44999429{3}[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 #
5. foobarbecue ◴[] No.44999450{4}[source]
Isn't it easier to just write the code???
replies(1): >>44999679 #
6. stavros ◴[] No.44999451{4}[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).
7. BeetleB ◴[] No.44999679{5}[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 #
8. foobarbecue ◴[] No.45000538{6}[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 #
9. 1zael ◴[] No.45001279[source]
Congratulations, you replace my pile of "slop" (which really is functional, tight code written by AI in 1/1000th of the time it would take me to write it) with your "shorter" code that has the exact same functionality and performance. Congrats? The reality is no one (except in the case of like competitive programming) cares about the length of your code so long as it's maintainable.
replies(1): >>45007978 #
10. a5c11 ◴[] No.45001453{6}[source]
> Also, setting up logging in Python is never fun.

import logging

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

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

12. BeetleB ◴[] No.45001623{7}[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 #
13. PUSH_AX ◴[] No.45001766[source]
Clean code? Fewer lines? Found the intermediate.
14. foobarbecue ◴[] No.45007978[source]
But that's the thing -- because I WROTE my code, I know there's nothing bizarre in it. Your code is almost guaranteed to have something bizarre and unexpected in it, at least somewhere.
15. dang ◴[] No.45077840[source]
This is a belated reply, but you broke the site guidelines badly here. It's not ok to attack other users like this, no matter how right you are or feel you are. We ban accounts that do, so please don't do it again.

It's fine, of course, to make your substantive points thoughtfully, but that is a very different kind of comment.

https://news.ycombinator.com/newsguidelines.html

replies(1): >>45079260 #
16. foobarbecue ◴[] No.45079260[source]
Apologies, forgot to check my reaction.