r/ProgrammerHumor • • 15h ago

Meme likeProgrammingAWebsiteInCplusplus

Post image
2.0k Upvotes

64 comments sorted by

47

u/hoangpham133 8h ago

two chimps carefully picking through each other's fur is, well, honestly the most accurate picture of a code review where both ppl actually read the diff

154

u/MinecReddit 11h ago • Bravo

What’s confusing to me about posts like this is that I work at a place where we have unlimited access to Claude/Cursor/Codex (within reason) and also zero expectation to actually use it

And literally unanimously, people use it.

I put very deep thought into how I think about systems, service contracts, networking layers, security etc., but in terms of the actual code? I have the luxury of letting AI handle most of that part as it’s “solved” (with me holding its hand of course), but this post is suggesting that it’s better to… do what exactly?

118

u/gnutrino 10h ago

do what exactly?

Write the code yourself and have an LLM review it rather than the other way around. Humans are really bad at finding mistakes in something that is usually fine because we get complacent and bored and convince ourselves that we're checking things more carefully than we are. Computers don't have that problem so let them work to their strengths.

Conversely, when shit hits the fan you're going to want to know the code yourself on a deep level - get that by writing it. If you think an LLM writing the code and you reviewing it is faster than writing it yourself I would argue that you have not understood that code well enough.

To be clear, this only applies to code that actually goes into production, I'm much happier letting AI write tests for example.

27

u/ih-shah-may-ehl 6h ago

Write the code yourself and have an LLM review it rather than the other way around

The problem is that writing code yourself is orders of magnitude slower than having it written for you by an agent that receives proper prompts. Whele you are still figuring out subroutines, the agent can develop a finished piece of code that can be unit tested.

I am old enough to have seen the transition from handcoding raw win32 code for GUI applications (spending literal weeks on basic UI features) to MFC and the resulting GUI Wizards allowing you to build GUI on the fly. We went from weeks to minutes. Or I remember implementing raw DCOM interfaces and spending weeks developing basic the basic skeleton of an application instead of letting the ATL Wizard do all that. Yes, you need to be able to debug problems but that is no argument for reinventing the wheel time and time again.

As an aside: you already lost a lot of deep level understanding and you don't give 2 ct about that. Earlier this year I published a book called 'Understanding COM' which is the only book of its kind and explains in pure detail exactly how (D)COM works under the hood and exactly how method calls are marshaled between processes and different security contexts. Any application on Windows sooner or later uses DCOM. And I'm betting that most people including you, do not know the nitty gritty. But that's ok because that technology is so mature and transparant that you don't have to know.

We are always building on top of previous layers. So yes, you need to be able to read code, but there is absolutely no way that manually curating each line is economically viable or even technically worth it. I've encountered more errors in my own code than in did in generated code.

30

u/AgVargr 4h ago edited 1h ago

I trust code generators because they’re deterministic. When they fail, they do so in predictable ways. AI code is a gamble, and the bugs can be very insidious. That’s because, AI is very good at producing stuff that looks correct, and that looks like they had been thought through. But then it makes mistakes that a person (imo) would not have made, because fundamentally AI do not “reason”.

To me, it’s like the 6 fingered hands and other mistakes in AI art. An actual artist would never make those mistakes no matter how amateur they are. AI does make those mistakes because it doesn’t actually know what a hand is

-1

u/Mountain_Goat_455 26m ago

if you are still making this argument you are sttill stuck in 2021.

-12

u/ih-shah-may-ehl 3h ago

Sure. For now. Compare AI today with AI 2 years ago and you can see the progress. We're not there yet but it's pretty much inevitable at this point

9

u/0x2113 2h ago

And that's the wishful thinking. Anytime someone goes "for now" or "it'll get better soon", that's just gambling on the future. The presumption that AI will keep improving forever is just that: A presumption. It's certainly not inevitable.

Seeing how the overhead for AI tech has continued to grow while software quality has stagnated or regressed (when was the last week where we didn't have some kind of widespread broken software update caused by AI code?), I tend to liken AI to asbestos: It certainly has its uses, but once a better alternative comes around (and of that I am sure, but it won't be LLM based GenAI) we'll be spending a lot of time cleaning up after the hype and the people coming after us will be bewildered by our enthusiastic use of this unfinished technology in every aspect of our lives.

-3

u/ih-shah-may-ehl 2h ago

Disagree. Because right now we're already at a point where it is an extremely useful and viable tool for developers. Even if it flatlines in performance and capabilities, people prove every day that in its current incarnation it's a productivity multiplier.

4

u/0x2113 1h ago

So was asbestos.

You're of course free to disagree (and it's not as if I don't see the benefits of using GenAI, at least in theory). But I believe you're also disregarding important cost factors in both the near and far future; technological, cultural, economic and environmental. The fact that we (as a society) can even genuinely argue about the cost/benefit balance of GenAI shows how narrow the actual margin is. If it weren't, the case would have been closed a long time ago.

0

u/ih-shah-may-ehl 49m ago

Yes, so was asbestos. However, asbestos turned out to be a health hazard. You'd need to argue that AI was hazardous.

But then again: so is screen time. We're not going to abolish TV or social media. I agree with you there is a cost, at the every least cultural and environmental. But the pure financial picture is that companies who refuse AI as coding tools are less efficient and cannot keep competing in the same markets for the same projects.

-11

u/teymuur 6h ago

This is basically what I do for writing reports in unis. If you are still learning programming it is okay to let it generate snapshots if you are not familiar with a specific API syntax or using a new tool until you get a hang of it. Or writing pseudo code and letting AI convert to actual code

11

u/Scared_Accident9138 4h ago

When your goal is learning to program that is the worst time to delegate it to AI

24

u/LobsterInYakuze-2113 10h ago

Part of cooking a meal is to clean the dishes. Using a dishwasher doesn’t make you less of a cook. I give all the boring stuff to AI so I can focus and take credit for the interesting parts.

5

u/HelpfullyAmazing 6h ago

AI writes the code, you debug the 2k-line template error. That's the joke.

2

u/UncleKeyPax 6h ago

i thought it was a joke about back hair

4

u/HelpfullyAmazing 5h ago

That's a better joke. Debugging back hair sounds like a full-time job.

3

u/Castle_Five 5h ago

You'd think the strongest man in the village would be the first to welcome the invention of the pulley because maybe now everyone would stop asking him to come lift all the heavy stuff already. But if just anyone could lift stuff even heavier than he can, then can he still be called the strongest man in the village? He worked hard to get that strong. He doesn't even mind being everyone's first choice to lift sofas when they move. He gets a thank you, a pizza, and the satisfaction of knowing that everyone knows he's the strongest man in the village.

And so both the man who could most effectively use the pulley and who would benefit the most from using it doesn't. He tries to get anti-pulley laws passed. And to shame anyone who tries to use it to build anything grander than he could.

16

u/GreyGanado 5h ago

I like this universe you invented where pizza and sofas were invented before the pulley.

7

u/Scared_Accident9138 4h ago

By your analogy the best programmer will get much worse due to lack of exercise

•

u/windsostrange 6m ago

Ironies of Automation

-5

u/cheese_is_available 4h ago

But we will lift so much stuff using the pulley that his impact will increase threefold. And why was he strong in the first place ? To be strong or to lift stuff ?

6

u/Scared_Accident9138 2h ago

Well we can see irl that lack of needing to physically move is making more and more people physically unhealthy. Same can happen to the mind if not used enough

0

u/cheese_is_available 1h ago

You assume someone using AI is not going to use his mind for telling the AI what the specifications are, use the minimal amount of token or for pointlessly arguing shit on the internet (which is wrong, but put you alongside Socrate when he said that book was going to make the young soft, as narrated by his disciple Aristotle in a book).

2

u/Scared_Accident9138 54m ago

You assume someone using AI is not going to use his mind

I did not. People still move around. A programmer using AI will still use their mind but everything they don't program themselves is a reduction in excercise and will reduce their capability over time.

This isn't AI specific. If you instead delegated the programming to another human you'd also miss out on the programming exercise. You can't gain stamina by letting someone else run for you

0

u/cheese_is_available 46m ago

You can gain stamina if you let someone run for you in the cold and you're going swimming indoor instead.

5

u/P1R0H 4h ago

maybe he just liked lifting stuff...

And people like doing things.

And now they say this "do-whatever" can do whatever so you don't have to. And if you *want*, well, don't do it for me because "do-whatever" does whatever quicker...

62

u/AngloIrishPhel 15h ago

Probably depends what you are doing tbf, my repetitive tasks like packages that need a minor update are in an AI workflow as it means I can do them quicker

115

u/OmegaPoint6 14h ago

Did you not have non-AI automations for that in place? Why use AI to do things a script should be able to handle in more predictable way

63

u/Sw429 11h ago

Exactly. People act like everything was manually done before hand. It wasn't, we just had deterministic scripts to do it all.

Doing this stuff through an LLM likely doesn't save any time since you still need to at least take a look at what it did. Unless you're just going off of vibes.

14

u/drawkbox 8h ago

That is why Zero Token Architecture is so important.

You might use AI to make tools and software -- but just as before at automation and runtime you want deterministic systems and no token cost to keep running.

Reasoning should only be use in dev or very unique moments in a runtime where random temperature, mutability and morphing output is needed for the design.

3

u/Hohenheim_of_Shadow 1h ago

"Zero Token Architecture". I hate it but I love it. Only a hype cycle can replace a hype cycle.

0

u/AngloIrishPhel 14h ago

Not when I joined, no.

I actually am working on making the skill automated, the projects we have are largely inherited, and as such have a ton of different structures and stuff so not all the updates are done in the same file and even then the updates need to be monitored as it's not always picked up.

Where the company is giving us tokens to use, my view is I'm going to use them if it makes my life easier as if I give it rigid enough instructions on a non creative task, its pretty reliable especially when working on lots of repositories at once, through the use of sub agents to protect context.

Would a script be possible, yes, is it easier probably not. The benefit with the AI is that it can flag and do starter investigation into an issue that I can review.

Usually an update can take weeks to get fully out because we have to work with colleagues in different teams in different time zones (ik, it's bad, but it's not me that decides that) but with the AI automation we can crack through 10 of those in an hour and a half on our end, less time if I dedicate more subagents. Which speeds the process up. And then review takes less time as I have it configured to show links to the evidence in the PR. Obviously it flags some as being out of its scope but this is easier to remedy when we don't have a big backlog to work on.

5

u/tsammons 13h ago edited 12h ago

Let AI build scripts to build packages from some core libraries that are fairly ossified.

What would've taken me a week to research/perform took 30 minutes of prompting, testing, and refinement.

I was skeptical of AI a few years back, even back in January. Picking it back up and throwing it some tasks that have been eating away at me... Impressed! Quality has gone parabolic this year.

Edit: oops, guess the Code Academy "bursar's office" got wind of this.

-9

u/AngloIrishPhel 13h ago edited 12h ago

So real, I've managed to get the jobs I've been given as Entry Level pretty automated so I should be able to learn more

6

u/CrapsLord 14h ago

This is how I felt this week after I got ridiculed for hand writing something. Like yeah I know the AI could have done it faster and maybe more features... What they don't realise is that all the small crap where I would have gotten blocked on I just asked questions to AI and got on with it. AI solved the Riemann hypothesis, so yeah it can create this database.

1

u/usefulidiotsavant 4h ago

Meanwhile, you cowerker is getting unreasonably good at mind pong: https://www.youtube.com/watch?v=rsCul1sp4hQ

Man's gotta do what man's gotta do to keep that tasty banana smoothy flowing.

1

u/itsTyrion 6h ago

literally the other way around. the other day I let the agent fast track a whole new feature. 20 minutes later I caught myself asking it to make a minor change because I already knew none of the new code, only that the diffs one by one looked good enough. but by all means, let it run for like 12h

1

u/Typical-Employment41 8h ago

Whats wrong with writing web site in c++?

0

u/ShustOne 4h ago

I put thought into my code and use AI to write it. It's not like you have no control over what it does.

-5

u/PotatoLevelTree 7h ago

You set the prompt rules. AI generates code, you code review it and add the changes you need, or even ask for a refactoring.

Maybe young guys love writing code loops, conditionals or basic SQL code with hundreds of fields one by one,  over and over. I'm not at that point.

Any senior dev will be 5x faster this way rather than writing boring boilerplate code for hours.

3

u/tiajuanat 6h ago

We just ran an experiment where a staffer ported over our flagship product from C++ to Rust, adding a few extra features and killing some long standing bugs along the way. All in about 500 hours and it cost about $300 in tokens. Most of it, he wasn't there, and he was just doing occasional reviews.

So that's a 600-1000x speedup.

I really didn't think we're going to get here.

0

u/knowits 6h ago

undefined reference to main. Good luck with the linker hell, buddy.

0

u/Frag0r 3h ago

I'm way faster than before and actually need to take some time off because our backlogs end up empty really quick. To no surprise, I now spend more time talking to business analysts so they finally come up with new requirements.

-24

u/KikiPolaski 14h ago

The Last Samurai ahhh post

-25

u/ddwrt1234 14h ago

When you are doing deadline based development, this is obvious

-53

u/m3ltph4ce 14h ago

Haha, yes this AI programming trend is very poorly thought out, yes, friend?

Were you also born between 1946 and 1964? No? But you DO believe you're smarter than everyone around you and immune to any evidence to the contrary? Well, okay, that's good enough to join our club.

-15

u/[deleted] 8h ago edited 4h ago

[removed] — view removed comment

2

u/_arrakis 4h ago

Writing the code would be building the app. You sound like someone that goes into a restaurant, tells the server what they’d like, the cook makes it, the server brings it to your table. You then proclaim Look what I made!

0

u/Butt_Breake 4h ago

You think I, or the consumer cares who made what or is trying to make an origination claim? I don't care about that shit, I want a good app, program or service. I don't care who's hands made it. Do you even build anything?

1

u/mrwishart 4h ago

Why so sensitive?

1

u/Butt_Breake 4h ago

What are you building with C by hand nowadays?

1

u/mrwishart 4h ago

Want to answer my question first?

1

u/Butt_Breake 4h ago

What substance did your question actually have? If there was more to it, I would engage further but as it stands it's a flimsy insult.

I am genuinely curious, what are you building nowadays?

1

u/mrwishart 3h ago

It was a fairly simple question because you took great offense to a completely inoffensive joke. And you still haven't answered it

1

u/Butt_Breake 3h ago

I guess I would say I thought my peers in tech were all technologists who would utilize computers to the best of their advantage, but instead I'm seeing busybodies priding themselves on writing worse and less code because it came from their hands. Okay now you.

1

u/mrwishart 3h ago

That doesn't explain your sensitivity about this image, just the rationale you've employed to justify it. Are you truly offended by the very idea some people still enjoy writing code by hand?

1

u/Butt_Breake 3h ago

I think you're rather sensitive around the lack of projects you have going on at this point if we're going to play the mind reading game. I don't feel "sensitive", or offended, so I can't come up with a bullshit answer to satisfy you. What projects do you have going on man?

2

u/mrwishart 3h ago

Your first post says otherwise: You went on a rant (sadly now removed by the mods) about the OP being a Luddite simply for posting a funny meme

And I was curious why that triggered you so badly. Still looking for a proper answer to that

→ More replies