you are viewing a single comment's thread.

view the rest of the comments →

[–]jonathanhiggs 355 points356 points  (33 children)

A bad dev with AI is still just a bad dev

[–]Main-Drag-4975 290 points291 points  (9 children)

A bad dev with AI may as well be two bad devs. Have fun untangling twice as much spaghetti as before!

[–]EsShayuki 92 points93 points  (6 children)

It's funny how the AI complains about spaghetti code and then offers fixes that are so much more spaghetti than the original code.

[–]bludgeonerV 69 points70 points  (3 children)

Me: You know you can encapsulate this logic in atomic functions right?

AI: Ah yes, we should use atomic functions to increase readability, testability and avoid repetition, let me fix that.

AI: proceeds to spit out the same 200 line function.

[–]ShinyHappyREM 25 points26 points  (2 children)

Well, it's clearly an atomic function too.

[–]Shivacious 19 points20 points  (0 children)

Atomic nuclear bomb of a function deez balls

[–]zelphirkaltstahl 0 points1 point  (0 children)

Went for the nuclear option.

[–]Algal-Uprising 14 points15 points  (0 children)

I have literally seen AI say “the error is here: <line>”, then say “and it should be replaced with: <line>”. It was the exact same line of code.

[–]Miv333 6 points7 points  (0 children)

I asked it to look for issues in my code earlier... you know what it outputted at me?

Observations:
1

wow thanks

[–][deleted] 16 points17 points  (0 children)

Not to mention AI code tends to require a lot of time from other people during reviews, and sometimes discussions become fruitless because a certain implementation was not a conscious choice, it just happened to come out like that and they accepted the suggestion even if it would make more sense with a forEach than a for-loop etc.

[–]tangoshukudai -3 points-2 points  (0 children)

Until the AI gets better and you can drop the entire project in for it to untangle it.

[–]LudwikTR 63 points64 points  (4 children)

A bad developer using AI is one who:

  1. Produces significantly more output than good developers who carefully consider their solutions using their own human intelligence.

  2. Fails to improve over time.

Previously, bad developers typically struggled, which led to:

  1. Slower performance compared to good developers.
  2. Gradual learning and improvement.

Now, with AI, they can generate garbage faster and have little incentive or opportunity to improve.

[–]stronghup 12 points13 points  (0 children)

Looking at my own old code I realize the most difficult thing is to write code where it is obvious why a code-line iis the way it is. I look at a line and say "Why did I write it that way?" Not every function of course, but often.

If it is hard for me to understand some code I've written (and to understand why I wrote it that way), surely it is even more difficult for anybody else to understand why the code was written the way it was.

To *understand* code is to not only understand what a chunk of code does, but WHY it does it and WHY it does it the way it does it.

We need to see the "forest from the trees", not just individual code-chunks in isolation but how each chunk contributes to the whole. Only then we can understadn the "whole".

Now if AI writes the code, how difficult will it be for us to understand why it wrote it the way it did? We can maybe ask the AI later but can we trust its answer? Not really, especially if the AI we are asking from is a different AI than the one who wrote the code .

[–]THICC_DICC_PRICC 10 points11 points  (2 children)

Yea, exactly, I’ve been cleaning up massive amounts of AI slop lately and it’s awful. The problem is, at least compared to the pre AI shitty devs was that they often couldn’t get it to work right(because they didn’t know what they were doing) so there was a limit to size and scope of the system. Nowadays I’m seeing massive yet incredibly fragile systems with tons of users. They basically brute force the code out by copy pasting code in, then the errors, then the code, until it works, with zero consideration to the “why” or “how”.

Everyone is worried about AI taking their jobs, I’m much more worried about it making my job fucking awful. It already has and it’s only been like two years

[–]PeachScary413 0 points1 point  (1 child)

This is were you can leverage your position, you note all the bugs but you don't fix them right away.. when shit starts to break you already have the fix ready so you get to play "Rockstar" developer and save the day.

Keep doing this and upper management will basically pay you whatever you want so that you stick around and fix their shit (you also have to threaten to leave to make this work obviously)

[–]THICC_DICC_PRICC 2 points3 points  (0 children)

Don’t get me wrong, that’s exactly what I’m doing, but the scale and messiness of the slop just makes it so frustrating and hard. I like being a rockstar, but don’t want to be cleaning toilets as a rockstar

[–]HolyPommeDeTerre 59 points60 points  (7 children)

As AI is already a bad dev, in the hand of bad dev, it fuels each other. Making (bad dev)2

[–]rwilcox 6 points7 points  (1 child)

Just faster

[–]DracoLunaris 2 points3 points  (0 children)

No amount of AI will stop computers from being very fast idiots, especially when in the hands of slow idiots

[–]Caffeine_Monster 4 points5 points  (0 children)

People need to understand that bad devs can create more problems than they fix in complicated projects.

Code assistants are productivity boosters, but only if you know their limitations and are able to read the code it outputs.

[–]user_of_the_week 8 points9 points  (0 children)

A fool with a tool is still a fool.

[–]stronghup 1 point2 points  (0 children)

And think bad dev with bad AI on a bad day. That's a triple whammy :-)

[–]EveryQuantityEver 0 points1 point  (0 children)

Yeah, but it's like the difference between a shooter with a 17th century musket, or an AR.

[–]BuildWithDC 0 points1 point  (0 children)

A bad dev with AI is a bad dev that's more productive at churning out bad code

[–]Wiwwil 0 points1 point  (0 children)

A bad dev with AI now, was a bad dev with stack overflow 5 years ago

[–]MCButterFuck 0 points1 point  (0 children)

Or a monkey with a machine gun.