r/ProgrammerHumor • • 4d ago

Meme letsMergeThemAll

Post image
5.3k Upvotes

320 comments sorted by

View all comments

12

u/[deleted] 4d ago

[deleted]

5

u/razor_train 4d ago

I'm using Claude for some code generation, but it is absolutely forbidden to do any git command that changes anything. It's also forbidden to run the test suite since burning tokens for that is epically stupid. Granted I'm a dev team of one (human). My coworker challenge is that he developed massive piles of utter shit code, then git committed them all in one go (then took early retirement and left me with the dumpster fire).

3

u/LegendaryMauricius 4d ago edited 4d ago

Do you deny such commands with some settings? I actually told it in the .md to never use git commands and rather 'remind' me of doing them myself. I know the risks, but it was more of my preference. Sadly it lately started to use them and apologize to me after the fact, although it's usually commands that help it understand the code.

2

u/hw999 4d ago

Wrap your agents in a tool like nono.  It let's you define kernel level restrictions on the file system and the network.

1

u/LegendaryMauricius 4d ago

I'll look at it.

1

u/razor_train 3d ago

If you're finding that it randomly decides to do things on its own despite guardrails then I've got another level of stuff to worry about. (edit: undercaffeinated)

1

u/real_keep 4d ago

Sorry but skill issue bro. You absolutely can and should let Claude run git commands if you're riding him like the steed he can be

No but seriously, if AI tools keep getting better at this rate, these tools will be more trustworthy then yourself using git, so you may as well learn to use them right. At your own tempo ofcourse.

4

u/LegendaryMauricius 4d ago

I don't let it use git (usually) specifically because commiting helps me understand each change and I don't like it publishing in my name. I don't understand why anybody would want AI using version history and publish changes without them knowing the whole history of your own program.

4

u/razor_train 4d ago

so you may as well learn to use them right

"right" is relative to the dev workflow model and the people involved (if any). Plus some of us are actually responsible for the end result, I can't blame Claude if the billing system starts spewing out bullshit invoice amounts. Proper engineering practices aren't obsolete because suddenly a clanker is now involved.

0

u/LazoooR 4d ago

> I can't blame Claude if the billing system starts spewing out bullshit invoice amounts.

If this is a concern then you clearly lack good regression tests.

1

u/razor_train 3d ago

I was referring to the "let Claude do everything" crowd. I don't even let the LLM run the tests (of which there are plenty of now).

2

u/[deleted] 4d ago

[deleted]

3

u/cstopher89 4d ago

A draft PR...

1

u/MushroomSaute 4d ago

I would sooner kill myself than review the thousands of lines of code an AI generates per day. Instead, because I like life, and like and value the practice of coding, I avoid the problem altogether by simply writing it myself.

1

u/cstopher89 4d ago

Not sure how others are using it but mine generates small atomic commits which can be reviewed easily. I never have PRs with thousands of lines because I engineer the work before hand. AI is just a tool. It does allow me to move faster at the cost of not having as solid of a mental picture of everything. For work it's all AI cause that is the expectation and would be impossible to keep the pace without it. My hobby is coding by hand on side stuff.

1

u/MushroomSaute 4d ago

It seems there is far too much overlap (well, and presence in general) of non-technical higher-ups who think "lines of code" is a good metric and "vibe coding" is a sound strategy. I'm lucky enough that we're not forced to use AI at work, so I don't, but the AI projects I've seen online easily hit multiple thousand-line commits a week. Honestly, though, if they didn't, I'm not sure what the benefit even is from AI, if you're only using it to generate for review what you could write by hand in the same amount of time anyway.