Hacker News new | ask | show | jobs
by ayushgp 2336 days ago
I agree. I recently worked on a price where 1 java class had 14 methods named construct<subtype>fields which all built a html+js+css mess using a string builder. I was asked to add support for 3 more subtypes. And this was the god class for the UI. We rewrote the whole UI in 3 months. There was no way that could be refactored.
2 comments

A rewrite that small is a refactor.
That just sounds like garbage code to begin with.