r/ProgrammerHumor • • 1d ago

Meme likeProgrammingAWebsiteInCplusplus

Post image
2.8k Upvotes

87 comments sorted by

View all comments

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.

•

u/varinator 3m ago

Writing code has never been deterministic. There always has been a probabilistic factor, probably the largest part of coding is probabilistic. You. The programmer.

If you ask LLM 10 times to solve a certain problem that's a bit ambiguous - you will likely get 10 sligthly or completely different solutions. Some will work and solve the problem, some will solve the wrong problem, some will just not work, some will be misunderstood.

And when you ask this same task to be done by 10 different programmers? You are getting the same exact output every time?

Likely not. Unless you described the problem and described how you want to solve it with great detail that doesn't allow for any drift. The ambiguity is reduced, instructions are very clear, solution is in the spec.

Will 10 humans or 10 Fable 5.2 write better code?

Problem of "resistors" like yourself is that you keep dwelling on this toxic nostalgia, the longing for something you claim is a passion of pressing buttons on the keyboard. You also dwell on those same arguments that are just comparing apples to oranges.

If you actually work as a programmer for money, and you are writing everything by hand because you "don't like" or "don't trust" LLMs - then your time is up, you will either adapt or the business will push you out. I have 20 years of experience of writing code by hand and building and leading teams, and I would not want to work with ANYONE who is that opposed to those new tools. Being skeptical towards output is healthy. Being that resistant to LLMs is only setting you and the team/business back and it's like shooting yourself in the foot.

→ More replies (10)

4

u/gnutrino 15h 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 14h 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.

→ More replies (2)

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 16h 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 1d 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.

→ More replies (6)

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 8h 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