This is an automated archive.

The original was posted on /r/php by /u/SmartAssUsername on 2023-08-29 20:12:02+00:00.


I recently started working for a new company. The project I’m on is quite frankly the worst codebase I have ever seen in my life. There’s no structure, global variables everywhere, every file has at least 3 includes at the top, html mixed with php mixed with queries, there are some classes but they’re mostly mixed with functional code.

I don’t even know where to begin refactoring it. I’m very tempted to just quit, that codebase looks like nightmare fuel.

The only good news is that the team seems receptive to making it better.

For those of you who were in similar situation: am i pushing water uphil in trying to refactor it or should i move on to greener pastures?