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
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.
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
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.
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.
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
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? 😞
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.
I think it was fireship that said that most bugs are caused by the developer, 0.1% of bugs are compiler bugs, of those 0.1% are architecture bugs, of those 0.1% are cosmic rays, and 0.1% of those sre actually just quantum effects, 0.1% of thode are actually errors made by god when he created the universe
Yeah. That's such a weird choice. My compiler bug counter goes up to 3 if we count that because I've run into it too. But you're right that that's not a compiler bug it's just a stupid decision made in the design of the standard library.
They really should have left vector<bool> to act like an actual vector of bools and made a separate type (could be called something like dynamic_bitset or bit_vector) to be a resizeable compact bit array.
I have found framework bugs and bugs in system code before, I don't recall ever having found a compiler bug yet though. There was that one time I massively sped up a stored procedure by swapping the order of two unindexed AND predicates though.
You ship it you own it! Low key it’s still best effort and defects should be caught in testing. Reviews are for style, structure, approach, testing etc… I don’t expect to exhaustively catch bugs (subtle or otherwise) by eye in reviews.
Pull request in my eyes includes looking at diffs, making sure it builds, making sure unit tests pass, and then doing a few small smoke tests of common functionality.
The dev that made the request should have done more thorough testing than that. And yeah, test team even more in depth testing.
And these days "reasonable effort" no longer translates to reading and comprehending every line someone else probably didnt even bother reading. And they can shit out tons of shit code faster than any human comprehension.
Reasonable effort today is just eyeballing things but having your AI actually review under your specific preferences.
will management accept if there is a production incident and the reason was "the AI did it"? If yes, go ahead, if not you have a problem on your hands.
I'm on the reviewer side of this argument, so I agree that if you commit it then you should understand it. Ownership, responsibility, comprehension/understanding and trust. Each of these things overlap in different ways.
I think the author of the code has the greatest requirement to comprehend/understand the code, because the reviewer (or acts as the effective owner through release management) trusts that the author likely understands the code they wrote. However, the onus still falls on the reviewer to give it a pass and ensure they understand it before shipping it given they are likely responsible (e.g. for uptime or whatever).
That said: You are also right as well. As a matter of professionalism and programming etiquette you genuinely aught to own (as in "own up") and take responsibility for the code you wrote. That is: You should be embarrassed if there are bugs and issues. You should not simply immediately retort with the "Oh well you approved it" shrug off. Even if it's technically true, it doesn't really help the overall situation and you lose opportunity for self reflection and improvement.
As both a developer but also a reviewer and release manager myself, when I commit code, I always review every single line after I commit. It may seem pedantic, but for production systems and site reliability, that's important to me. At least when it touches anything even remotely important. Some development only scripts or unit tests I have a slightly lower bar, but even then you still check to ensure they're not BS tests that effectively test nothing, test or enforce the wrong thing, or are too verbose or too tightly bound to functionality that's inconsequential (more common with AI written tests).
I mean yeah, vibe coding is horrible you should at least look at the code and check if anything is wrong instead of blindly trusting ai, also read the docs yourself you lazy fucks
Want to know a secret? I actually use Claude to see what changes were made and when to get a full picture. Navigates version control like a champ. Also can see who made the changes and who approved immediately.
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.
149
u/hpyfox Sep 24 '26
Blame the computer for interpreting your code wrong.
215
u/FallenVampireLord Sep 24 '26
Me when I show him the PR he reviewed and approved of said code
26
u/herrkatze12 Sep 24 '26
https://github.com/jayphelps/git-blame-someone-else
24
u/DM_ME_KUL_TIRAN_FEET Sep 24 '26
Change your git identity to Claude. Checkmate.
14
u/NefariousEgg Sep 24 '26
This meme contains the fictional junior developer.
5
u/Bomaruto Sep 24 '26
It's obviously going to blame Sr. Dev as it's much easier for Sr. Dev to get poor code merged.
2
u/Pro-sketch Sep 25 '26
that's why I do this
1
u/Foorinick Sep 24 '26
I mean yeah, vibe coding is horrible you should at least look at the code and check if anything is wrong instead of blindly trusting ai, also read the docs yourself you lazy fucks
1
u/sebbdk Sep 24 '26
20 years, usually when i run git blame it's to figure out when we fucked up.
Main was a stupid rename, but i lowkey think renaming this one would improve all ya'ls imposter syndrome...
1
u/The_Krambambulist Sep 25 '26
Want to know a secret? I actually use Claude to see what changes were made and when to get a full picture. Navigates version control like a champ. Also can see who made the changes and who approved immediately.
1
u/Stjerneklar Sep 25 '26
claude dident fuck it up if its fucked up because you used claude