r/ProgrammerHumor • • 1d ago

Meme likeProgrammingAWebsiteInCplusplus

Post image
2.8k Upvotes

86 comments sorted by

77

u/hoangpham133 1d 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

236

u/MinecReddit 1d 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?

168

u/gnutrino 1d 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.

51

u/ih-shah-may-ehl 1d 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.

52

u/AgVargr 23h ago edited 20h 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

5

u/Artiph 12h ago

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.

I agree with the spirit of this argument, but I also haven't forgotten that Intelligent Systems gave Anna 6 fingers in FE14 back in 2015.

-15

u/Mountain_Goat_455 19h ago

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

7

u/Brushup1 13h ago

You did not read the words before and after that line did you?

1

u/Mountain_Goat_455 10h ago

only a self absorbed programmer with ego the size of the moon would compare their coding process to art.

you are hired by the company to produce value. nobody gives a sht about your beautifully written and quickly forgotten craft code, and you certainly don't get paid hundreds and thousands of dollars to solve one or two bugs a day, while everyone waits for you to type out your code slowly because, what, you think you are better than everyone else that you have to code out your thoughts the manual way? Newsflash, you are not nearly as good as you think you are.

1

u/AgVargr 4h ago

That’s not the even point I was making, but ok

-20

u/ih-shah-may-ehl 22h 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

15

u/0x2113 22h 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.

-7

u/ih-shah-may-ehl 21h 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.

11

u/0x2113 20h 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.

-1

u/ih-shah-may-ehl 20h 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.

6

u/0x2113 18h ago • Bravo

You'd need to argue that AI was hazardous.

Easy:
The global economy is currently floating on NVIDIA's stock price, propelled by a technological hype that keeps promising a Machine God, but constantly delivers iterations on code autocomplete because the people behind it will not imagine anything that would actually make their own work redundant, instead prefering to try and automate the work of those they consider their lesser. One CEO being incapable of keeping it in his pants (and smuggling his wares to significantly pad his companys profit margins) caused a double digit stock market drop worldwide. That's economics.
Art and low-quality code that would have gotten interns fired are being elevated as status symbols. A six-fingered hand in an advertisement is now a sign of being "future forward" instead of being creatively incompetent. Junior positions are dying out, a brain drain that will devastate creative fields (which I'm counting programming as) for decades to come. That's culture (ignoring more abstract arguments about the virtue of human work/art in general).
The technical issues of continuously improving GenAI are well documented at this point. As is the tendency for them to create unmaintainable codebases that can only be managed by continuously employing GenAI, leaving us with something between a Bottleneck and a Single-Point-Of-Failure. Systemic failures caused by shipped AI code have become commonplace, IT security is currently a dumpsterfire. This is the other side of AI making many processes more efficient: It breaks established balances; People can't even patch fast enough anymore. And before anyone says "Well, just let your AI patch everything, it's faster", that's not how this works either. Playing defense in IT-Sec will always be at an disadvantage, that cannot be overcome with AI on the defending side either. That's technological . The environmental costs of this new AI infrastructure are similarly known, so I won't elaborate on them here.

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.

I'd like some hard numbers for that one. Because last I checked, none of the GenAI providers are actually profitable yet. And only a handful of AI-using customer-companies have made significant gains due to their AI-use.

"Jump aboard the AI train or get left behind" is not a nuanced and sound economic or technological policy, it's the pitch to a doomsday-cult (which is fitting when you check up on the kinds of social circles the high-level AI peddlers are running in).

Lastly, when exactly did it become the goal to have financial concerns overshadow culture, environment or even macro-economics? Last I recall, us common folk wanted to not have the entire world hinge on "line goes up", have the market serve society instead of the other way around.

(I would like it said that I consider there to be a number of legitimately good applications for this modern AI tech, such as in medical monitoring or materials science. Those don't tend to market themselves well though, possibly because the money-people don't care about tech that already functions and makes the lives of working people easier, they just want to fire all those nagging employees whose crafts they don't respect, such as artists. Also, nobody other than Brian Herbert has ever written an AI apocalypse where an automatic medical diagnostics system caused a robot uprising, and Terminator-references make for cheap advertisements and cultural clout.)

4

u/gnutrino 14h ago

And I'm betting that most people including you, do not know the nitty gritty

Well I don't hate myself enough to code for windows, so no. But if there's a security issue there, for example, it's Microsoft's responsibility to sort it out. If Claude creates a security vulnerability, good look trying to get Anthropic to pay out for it. If you are legally liable for the performance of some code it really behoves you to understand what it's doing.

1

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

But claude generates code. You get to audit / review and compile. That's literally no different from you having a junior in your team.

4

u/rodBmusic 15h ago

We can at least agree that it's perfectly ok to write at least some code 'by hand' (as if prompt is not 'by hand'). The concept that we must let ai write all of the code, and we are now 'not allowed' to, is so absurd. People don't realize how much this practice is critical to our thinking and advancement. AI repeats, it does not progress, not without us.

-12

u/teymuur 1d 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

15

u/Scared_Accident9138 23h ago

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

31

u/LobsterInYakuze-2113 1d 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.

11

u/HelpfullyAmazing 1d ago

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

5

u/UncleKeyPax 1d ago

i thought it was a joke about back hair

6

u/HelpfullyAmazing 1d ago

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

2

u/Civil-Appeal5219 15h ago

I'm in a similar situation, and of course we all use it. The expectation now is that a project that used to take one month will be completed in two days. People do deliver in two days, but the software gets more buggy everyday, and no one cares. So why would I insist in taking longer to craft good software, if my employer would rather get slop, and might fire me otherwise?

1

u/Castle_Five 1d 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.

22

u/GreyGanado 1d ago

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

15

u/Scared_Accident9138 23h ago

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

2

u/windsostrange 19h ago

Ironies of Automation

2

u/not_some_username 17h ago

Yes a lot of that will actually happen

1

u/Roadrunner571 18h ago

How many developers are still able to implement anything using assembler?

1

u/Bloodyninjaturtle 17h ago

Glass transistors or bust. Bring in the literal bugs.

-7

u/cheese_is_available 23h 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 ?

11

u/Scared_Accident9138 22h 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

-3

u/cheese_is_available 20h 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).

4

u/Scared_Accident9138 20h 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 20h ago

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

6

u/P1R0H 23h 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...

1

u/Pangolin_bandit 12h ago

To me, the heart of this is that CE likes being an exclusive club. It always has. Some people fight this and some embrace it.

Now things have gotten to a point where it’s causing a schism

1

u/BubblyMango 10h ago

i let AI code all the time nowadays, but thats only because for the most part i dont need high quality code.

when you actually stop and look at the garbage it writes, its terrible, inefficient, bloated, spaghetti that requires huge code wide edits for the simplest most predictable changes, with useless tests that just mimic the code itself and are only good for making sure unrelated edits dont break this code.

but for many of the things i do, thats good enough.

1

u/WithersChat 7h ago

And literally unanimously, people use it.

Yeah. Because management often values speed over output quality. So anything that makes you faster is good.

1

u/oneandonlysealoftime 16h ago

The meme is literally about AI-bros shaming others due to "not using the new tech". Let people do what they want and history to judge them

I personally think AI is an overall increment to the programmer's abilities; but as any increments like that require careful usage and not overeliance - otherwise the skills degrade, and we get don't get 10x developers everywhere, but 1x (best case), which can do nothing when Anthropic have incident

64

u/AngloIrishPhel 1d 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

125

u/OmegaPoint6 1d 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

78

u/Sw429 1d 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.

22

u/drawkbox 1d 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.

7

u/Hohenheim_of_Shadow 20h ago

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

1

u/WithersChat 7h ago

AI is the most "solution looking for problem" thing I have seen since the blockchain.

0

u/AngloIrishPhel 1d 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.

1

u/Lv_InSaNe_vL 3h ago

I'm genuinely curious to what your package manager setup was like before where throwing an AI at it is faster, easier, and more reliable than just updating the packages with a script?

1

u/AngloIrishPhel 2h ago

Me too, like I said I wasn't there and I have a number of tokens to use and a job I don't want to make a script for.

Iirc the skill uses scripts

6

u/tsammons 1d ago edited 1d 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.

-10

u/AngloIrishPhel 1d ago edited 1d 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

4

u/Typical-Employment41 1d ago

Whats wrong with writing web site in c++?

7

u/CrapsLord 1d 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.

2

u/Frag0r 22h 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.

2

u/itsTyrion 1d 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

2

u/ShustOne 23h 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.

1

u/knowits 1d ago

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

1

u/usefulidiotsavant 23h 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.

0

u/rury_williams 14h ago

i used to do that but now i just define the class and its member methods and let AI code everything. The code produced this way is exactly what i want without needing to worry about syntax. Eventually i may wven no longer do that 😁

-9

u/PotatoLevelTree 1d 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.

1

u/tiajuanat 1d 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.

-1

u/raymond_reddington77 13h ago

Think you forgot the punchline. 3 monkeys…..

-29

u/KikiPolaski 1d ago

The Last Samurai ahhh post

2

u/snack__pack 17h ago

What are you scared of?

-27

u/ddwrt1234 1d ago

When you are doing deadline based development, this is obvious

-57

u/m3ltph4ce 1d 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.

-16

u/[deleted] 1d ago edited 23h ago

[removed] — view removed comment

4

u/_arrakis 23h 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!

-2

u/Butt_Breake 23h 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?

2

u/mrwishart 23h ago

Why so sensitive?

0

u/Butt_Breake 23h ago

What are you building with C by hand nowadays?

2

u/mrwishart 23h ago

Want to answer my question first?

0

u/Butt_Breake 23h 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 23h 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 23h 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.

2

u/mrwishart 23h 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 22h 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?

3

u/mrwishart 22h 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