you are viewing a single comment's thread
view the rest of the comments
[–] 87 points 2 days ago (28 children)

The problem with Claude is that it doesn't write code to be modular & reusable. Every tiny change requires a complete rewrite.

  • source
  • hideshow 28 child comments
  • [–] 68 points 2 days ago (10 children)

    I've completely banned any code that can't be explained. I've had my CTO send me code at 3 AM to implement and when I ask him what I'm looking at he just says it doesn't need review, just push it.

    Uhh, no sir, I'm not doing shit because you've handed me GCC and we're MSVC.

    After I bitched endlessly to the CEO about that he said I have final say on what goes into the project.

  • source
  • parent
  • hideshow 10 child comments
  • [–] 27 points 2 days ago (7 children)

    I've had my CTO send me code at 3 AM

    I hope you don't even respond until your next normal working hours!

  • source
  • parent
  • hideshow 7 child comments
  • [–] 15 points 2 days ago (6 children)

    I love my job, even when I have to deal with nonsense like that and I'm compensated very well to be on call 24/7.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 8 points 2 days ago (4 children)

    that sets a really bad example. you shouldn't do that to yourself and you shouldn't allow it to happen to anyone else.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 2 days ago (1 child)

    He knows best what's best for him. If he's explicitly paid extra to be on call 24/7, and he's happy with that extra. Let him be om-call 24/7.

    There are situations and jobs where 24/7 availability is needed. Someone has to do it. And if that someone believes he's getting enough of a compensation for it, there's nothing wrong with it.

  • source
  • parent
  • hideshow 1 child comment
  • [–] -2 points 2 days ago (16 children)

    well, that depends entirely on your prompt/process, it can be done

  • source
  • parent
  • hideshow 16 child comments
  • [–] 12 points 2 days ago

    With enough seniour developer's time and dedication you can spend days and enough water to flood a town, so you can badly maybe do something that a junior dev can do already (your shit will still be worse). If that's not an achievement of a modern technology I don't know what is.

  • source
  • parent
  • [–] 2 points 2 days ago (13 children)

    Just more prompting will do + make no mistake

  • source
  • parent
  • hideshow 13 child comments
  • [+] -8 points 2 days ago* (12 children)

    unironically, a better prompt does yield better results - shocking, I know

  • source
  • parent
  • hideshow 12 child comments
  • [–] 6 points 2 days ago* (last edited 2 days ago) (11 children)

    Unironically Claude (or whatever you use) will almost always deliver code that is shit, it's just less shit if you prompt it better, LLMs are good to make short snippets if you get stuck tho; And remember to fucking check what the code is and rewrite bad shit

  • source
  • parent
  • hideshow 11 child comments
  • [–] -3 points 2 days ago* (10 children)

    I've seen plenty of code in my life, from humans and AI.

    For the past year or so, these agents can code just fine most of the time, as long as they are given enough context (or have the tools to get it). Regardless of how many downvotes I get here, they really are capable of generating decent code. I'm sorry you couldn't make it work yet.

  • source
  • parent
  • hideshow 10 child comments
  • [–] 3 points 2 days ago (8 children)

    I've seen too as I have to review it. AI produces very professionally looking bad code.

    It is so weird to explain, but that's basically what I see.

    Before LLM I could immediately tell someone's code is crap, now I have to spend a lot of time trying to understand what it does to reach the same conclusion.

  • source
  • parent
  • hideshow 8 child comments
  • [–] 0 points 1 day ago (7 children)

    My honest opinion is that it's bad because a lot of people using LLMs have no standards and push the first thing that seems to work. Be mad at who's at the driving wheel, not the car.

    You absolutely can generate crap with agents/LLMs, and like a humans writing, the first draft will probably be subpar or maybe complete garbage. Every new session is a clean slate, that's why putting effort in the documents guiding it is so important.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 3 points 1 day ago (4 children)

    The car analogy doesn't work because you're not the one making the code/driving the car. It drives itself, and you sometimes can propose some directions for it to steer.
    The problems with llm aren't just that sometimes your shit doesn't work or obviously bad, that's what you're talking about, and that's what minimally responsible sloperators can catch. The main problem is it writes something that looks OK to a human (that's a criteria for it) but sometimes it's unexpectedly idiotic in random places (because not being idiotic wasn't a criteria). You need to check way more thoroughly for it, and you can't use normal shortcuts that help you with it. So you obviously don't do that.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 day ago (3 children)

    See, that's the issue. People letting it "drive itself" get worse results. You should be the one holding the standards and guiding the model, otherwise you will be frustrated.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 day ago (1 child)

    I saw this advice too, the problem with being very detailed is a question why not use a less ambiguous languages to do it?

    Why not write the explanation in language like Python. Why should I write it in English when I can say the same thing in Python and it is actually easier to do for me.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 23 hours ago*

    This kind of specification applies to the agent behavior or the agent behavior in a project. You don't write it on every conversation, you write/review it once for the project or agent and let the harness include it on every conversation. You can even ask the agent to scan the codebase and pull desirable patterns out of it for future sessions.

    The entire point of using an agent is to not have to write everything yourself, so that when you write "implement feature X", the feature gets implemented in a way that makes sense in that project, is reviewed, refactored, and tested by agents, and it's good enough to bring in a human reviewer.

  • source
  • parent
  • [–] 2 points 1 day ago (1 child)

    Maybe I have some ridiculously high standard, but whenever I used it, I wasn't happy with what it generated.

    I noticed that the time it did it + the time for me to review it and possibly fixed was at best the same amount of time it took me to write, at worst it was longer.

    For hard problems that I stumbled on it was useless.

    For simple problems it worked and produced good code, but it still took less time for me to write it than waiting for Claude to finish thinking.

    Everyone swears that they can produce good code with LLM and it is others who are bad, and LLM is force multiplier to them. But from what I see the only time it can speed up their work is if they never review it or even take time to understand the actual problem they are trying to solve.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 23 hours ago*

    I don't know you, but it doesn't sound like a high standards issue to me, sounds like a lack of process. I've been a thorough reviewer before AI, at least thorough in the ways that mattered, not nitpicking formatting. And I'll tell you an automated reviewer today can catch more things before I have time to confirm the first item I find. There are still false positives, but it's still more thorough than I have time to be. Bc of that it really helps including a round of automated review before looping in a human, regardless of who/what wrote the code.

    The main kind of review problems AI still struggles with are the project direction ones: "does it make sense to implement this/like this?", "should this be a new package instead?", and things involving tacit knowledge that often goes undocumented "last time we did this, someone had to access prod on a Sunday" - so that's what I focus my reviews on. And the other area is if you're writing UI code, whether it's a web app or a game, it'll also struggle to determine what "feels" good to use, so it'll need a human earlier in the loop.

  • source
  • parent
  • [–] 0 points 2 days ago

    But AI bad and human code is so awesome! Better downvote. But seriously, there are people here saying that LLMs can not add anything of value in any way. About as delusional as Republicans.

  • source
  • parent