Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Related Rants
Opened a legacy PHP file from 2008.
No functions.
2,000+ lines.
Inline SQL.
HTML inside echo statements.
A single if (true) wrapping the entire thing like some cursed gift box.
At the top:
// Do not modify. Works perfectly.
At the bottom:
It writes to two databases. Only one exists.
Somewhere in the middle:
It sends an email…
to the client’s ex-wife.
I closed the file.
Rebooted my laptop.
Took a walk.
Still not okay.
rant
php