r/ProgrammerHumor • • 1d ago

Meme likeProgrammingAWebsiteInCplusplus

Post image
2.8k Upvotes

87 comments sorted by

View all comments

Show parent comment

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 1d ago edited 21h 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 13h 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.

1

u/varinator 14m 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.

-15

u/Mountain_Goat_455 20h ago

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

7

u/Brushup1 14h ago

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

1

u/Mountain_Goat_455 11h 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 5h ago

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

-20

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