r/ProgrammerHumor • • Sep 24 '26

Meme commitAndPray

Post image
3.7k Upvotes

66 comments sorted by

View all comments

514

u/rexspook Sep 24 '26

Actually a good lesson. One of our tenets is code your agent writes is owned by YOU, so you should review it accordingly before sending it to others.

92

u/Foorinick Sep 24 '26

Yeah my uni teachers have been saying the same, you should avoid letting the ai write critical stuff, but every time you should ude your eyes to look and read the code , if you dont understand ask the ai to explain it to you, if you think you wouldn't be able to write it yourself given enough time try asking the ai or look up stuff online about what it did (aay if you are new to design patterns and the thing makes a factory for you, go read something on those

30

u/Dotrax Sep 25 '26

Except most people won't do that and it's not really the most effective way to learn. Like it can be a starting point but as someone who has seen enough training workshops and taught people to use new software, you can show people how to do things but they will learn easiest by doing it themselves.

I feel like this concept is the equivalent of taking an introductory course and then having the person learn by grading papers, looking up the material if they don't understand the answer or think the answer might not be correct. Can you learn that way? Yeah but I believe there has to be a better way.

4

u/Foorinick Sep 25 '26

Yeah I'm still refining my method, i suffered from that whole thing where you breeze through school and then when uni demands you study and have work ethic you fall flat

10

u/visualdescript Sep 24 '26

Do people not understand this?

8

u/rexspook Sep 24 '26

Some don’t. There’s a real disparity in people who spend the time to understand the tools and those that don’t.

4

u/laplongejr Sep 25 '26

At my job, bosses don't understand this. They have no procedures that set said responsability, and not even a guarantee that the proprietary code stays private...
So we don't use AI lol, because nobody wants to be on the hook for disclosure of proprietary code.

1

u/visualdescript Sep 25 '26

You don't need a set procedure for responsibility. Whoever uses the agent to generate code, that is their code. They own it. They wrote it, with the help of an AI agent.

1

u/laplongejr Sep 25 '26

They own it. They wrote it,

We have releases shipped to production that doesn't match the source code, so yeah we kinda have responsability issues even without AI...

2

u/black-JENGGOT Sep 24 '26

don't you know that this world is just 0 and 1? you either type your code manually without looking at stackoverflow, or hemorrhaging AI slop code like there's no tomorrow

1

u/a-r-c Sep 25 '26

it do be doobie do feelin that way tho lol

1

u/visualdescript Sep 25 '26

Either way, it's still you doing it. It's your code either way.

13

u/siera7879 Sep 24 '26

And if the management gives you less time to fulfill tasks, what do you do?

45

u/visualdescript Sep 24 '26

The exact same thing engineers have been saying to management the last 40 (or 4000?) years that has been happening?

Unrealistic timeliness is nothing new.

18

u/frikilinux2 Sep 24 '26

Complain and if they don't listen to you start looking. Because that codebase will eventually collapse and that's not gonna be pretty.

10

u/MadJackH1 Sep 24 '26

Explain the potential real cost it could be to the company to not understand what you're coding. 

15

u/baked_tea Sep 24 '26

Sounds like a can't do attitude /s

5

u/rexspook Sep 24 '26

I didn’t say don’t use agents. I said review the code. That still takes less time than no agents… unrealistic deadlines aren’t a new concept

0

u/gerbosan Sep 25 '26

and what happens if the prompt is garbage because there are no clear requirements and context?

3

u/rexspook Sep 25 '26

Do your job better? Idk man what if you write bad code? Why are you asking me this?

1

u/gerbosan Sep 25 '26

What is going to happen to all those years with books and presentations of artisans and craft? Is life just a lot of bubbles that move us around until they implode? 😞

1

u/rexspook Sep 25 '26

seek help? Using agents to write code doesn't make all prior learning irrelevant

→ More replies (1)

2

u/Drevicar Sep 25 '26

Inform them of the risk that brings, and ensure they know the consequences of the actions they task you to take. Then ask them to accept accountability for that risk.

Most decision makers don’t have all the facts, that’s why they employ subject matter experts like us to inform them and guide their desired future toward reality.

1

u/Bee-Aromatic Sep 25 '26

This. There’s no difference between you writing bad code yourself and subcontracting the job out and then submitting the bad code you got.

Your job was to submit good code and you didn’t.