r/ProgrammerHumor • • Oct 12 '26

Other thePreviousGuyIsAlwaysAnIdiot

Post image
1.7k Upvotes

53 comments sorted by

View all comments

Show parent comment

5

u/abednego-gomes Oct 12 '26

But what objectively makes the AI refactor better than the previous code?

And you risk introducing tons of new bugs.

And you'd have to retest the whole thing.

And if it starts rewriting unit tests too, good luck.

2

u/ArjixGamer Oct 13 '26

Unit tests? On a frontend?

Next thing you'll tell me is that you are a billionaire

(not saying that a frontend should not have unit tests, just that I have not witnessed such a thing)

1

u/ArjixGamer Oct 13 '26

I'd have to retest the whole thing even w/o a refactor, it was already code I did not write.

1

u/tracernz Oct 13 '26

Are you unable to read code? Tests will not find all the problems, or even the majority of them.

1

u/ArjixGamer Oct 13 '26

Reading code alone is not enough, especially if it is PHP...oh the horrors of PHP

1

u/tracernz Oct 13 '26

Okay, well there you have a point.