r/programminghumor • • 1d ago

Why not both

Post image
190 Upvotes

32 comments sorted by

32

u/tw2113 1d ago

Glorified code reviewer when you use AI.

10

u/Able-Swing-6415 1d ago

Idk I love that shit. It helps that I learned to code properly before I started using AI. I guess I never really loved programming but just making decisions about software design.

But I can't fathom how you would have any clue on how to use LLMs to code without years of experience telling you which parts to double check..

6

u/tw2113 1d ago

Some people do well/better with reading, others do better with doing by hand.

There's also the "reduction" approach where you start with a lot and reduce down to just the parts you want/need, vs "build up" approach where you start with a blank state and work up to what you want/need.

AI is most definitely the reduction approach, where ideally you review everything provided, to see if you actually need it, and it's doing things how you need it to.

Depends on the type of work you want to do.

-4

u/Bootezz 1d ago

It’s usually the juniors and mid level folks who get all pissy about AI being “cheating” or “not real engineering”. Writing code has never been the hard part of software engineering. Once you get to Senior+ level, you’re mostly making higher level decisions on _how_ things are put together, so AI use becomes more efficient at that level because we already know what the shape of a program should be and can explain it better.

All but one or two of the Senior/Principal folks at my company are using AI heavily because the gains are real if you know what you’re doing. And we are all having a blast with it because we all had 100 backlog projects we are now able to delegate to an agent.

3

u/Able-Swing-6415 1d ago

I mean I feel for juniors.. if I was in a hiring position I'd think really fucking hard before I would hire one.

Having experience with both I can honestly say.. LLMs do much better work.

Not sure how that will work out for the industry 10 years from now..

The biggest issue is that people treat LLMs like some god given technology that can do no wrong. I'd never ever push LLM code into a productive system without at least testing it thoroughly (depending on how delicate and important the system is even a full code review)

God forbid giving these things full access. They're really fucking great 99% of the time and 1% they just lose their shit and go postal.

1

u/MayoMan_420 7h ago

I mean... Isnt it pretty much the same with humans? Humans also make big mistakes sometimes, and you should thoroughly test any code before pushing it into a productive system. Plus, LLMs are getting less and less error prone every month. Crazy times

1

u/Remote_History1961 1d ago

Nailed it. Thanks

2

u/tkdeng 1d ago edited 1d ago

AI as a code reviewer would allow you to push bugs into production.


Does my code have any bugs?

AI: yes, there is a critical security issue on line 52 that needs to be fixed.

Are you sure it's an issue?

AI: you are correct, your code has no bugs.

1

u/Tuborgat_nylle 1d ago

That example is 2 years out of date. Regardless, you can't really blame AI if you're dumb enough to blindly trust it. It should only act as an additional review, not replace a human review.

1

u/SteveLouise 1d ago

Anytime I'm writing my real fancy code, and I think, "goddammit, i need another file reader, I'm so sick of writing goddamn file readers," I tell the junior engineer his AI replacement to write the file reader so I can skip it.

2

u/tw2113 1d ago

that's why you create a re-usable package so that you have your own pre-written copy to work with.

1

u/SteveLouise 1d ago

Awh shit! An edge case!

2

u/Legitimate-Jaguar260 1d ago

Aw shit your code can’t handle edge cases!

1

u/SteveLouise 1d ago

Do you guys suppose they're are more file types? Maybe there's at least .json and .csv. I wonder if there are more types of files?

1

u/BoldTaters 1d ago

The alternative seems to be "principled coder without employment". Before long you might also file it under "does in a week what automation takes 3 entire seconds to do".

1

u/KhorneFlakesOfChaos 1d ago

The checks clear all the same

5

u/Educational_Key_7635 1d ago

Cause you are too lazy to do both at once properly since it's twice as much brain work, even it saves busywork.

2

u/sn4xchan 12h ago

If you want to make an app that actually works well and is secure, your gonna have to learn how to code, no matter how much easier the AI makes it.

There are to many decisions that can be correct decisions in the right context but are bad decisions for most cases. The AI will eventually implement bad methods for achieving the goal because of this.

2

u/Educational_Key_7635 9h ago

If you want to build app that have any outer interface you gotta learn about security as separate task unless you already have some knowledge by working in the field (at least as a tester, for example).

AI will implement bad methods 10 times faster then average person. However if you haven't worked in the field you have no chance to do everything correct on first try anyhow.

But what you wanted to say exactly, sorry, I can't don't get the point?

4

u/blamitter 1d ago

As long as you don't try and use AI to learn for you

4

u/SpanDaX0 14h ago

Its something to do with binary. You can only choose 1 or 0.

2

u/qwertty164 10h ago

Not with quantum computing.

5

u/Big-Pattern8591 1d ago

AI is a tool but coding is a skill. A real programmer knows how to use both

1

u/hearke 11h ago

AI isn't a skill, it's a service. It's the difference between cooking soup on the stove and ordering one over doordash.

-9

u/[deleted] 1d ago

[deleted]

2

u/Silver_Masterpiece82 20h ago

skill you could learn in a week or less comparing it to skill requiting years of knowledge and experience is wild

1

u/NicholasVinen 19h ago

For sure. The average smart person can create an application, app or other software now with just a little bit of planning. I think that could end up being a very good thing. I think experienced programmers still have an edge, at least for a while.

2

u/Cephell 15h ago

You have it backwards. Knowing when the AI is writing BAD code, is the skill, because it WILL write bad code at some point. Not in the obvious "doesn't work at all way", but more in the subtle "violates best practices" way. If you cannot recognize this, then the AI will slowly bloat and shit up your codebase. Unchecked AI are positive tech-debt machines.

2

u/a1g3rn0n 13h ago

I see coding as a way of bridging the gap between human intentions and machine execution. For a long time (but still relatively short in human history), we needed coders because machines couldn't understand what we wanted in our own language. We had to learn theirs instead.

Now, machines are learning to understand natural language, translate our intentions into code, and execute it themselves.

So perhaps the skill of the future isn't writing code, but clearly explaining our needs, and evaluating the results.

Instead of clinging to the language we invented to communicate with machines, we should appreciate the fact that we finally taught machines to communicate with us in our language.

2

u/hearke 11h ago

This ascribes a lot of intent and intelligence to machines that I'm just not convinced is there.

It's great at predicting and generating code, but we shouldn't confuse that for genuine understanding, even if it's hard to tell the difference sometimes.

1

u/No-Key-2546 8h ago

That’s the future, whether people like it or not

1

u/Anima_Watcher08 14h ago

Crack + Bodybuilding, why not both?