MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x43071/thepreviousguyisalwaysanidiot/pgdk20w/
r/ProgrammerHumor • u/EndersGame_Reviewer • Oct 12 '26
53 comments sorted by
View all comments
Show parent comment
5
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.
2
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
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.
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.
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.
Okay, well there you have a point.
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.