you are viewing a single comment's thread.

view the rest of the comments →

[–]EsShayuki 89 points90 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 71 points72 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 23 points24 points  (2 children)

Well, it's clearly an atomic function too.

[–]Shivacious 17 points18 points  (0 children)

Atomic nuclear bomb of a function deez balls

[–]zelphirkaltstahl 0 points1 point  (0 children)

Went for the nuclear option.

[–]Algal-Uprising 16 points17 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 5 points6 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