Ranter
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
Comments
-
arekxv10389yWe "inherited" an old project which has one controller with 5000 lines of code and one particular line near the end (PHP):
eval($_SESSION['params']);
And yes... params is set to many values throughout the project. -
I work on a legacy project that loads entire 2000+ PHP classes directly into the user session and then passes it around globally to every other controller in the application. It is not uncommon for the user session object to bounce off the 1024KB size limit and get truncated.
Related Rants
Lead: "We write SOLID code"
Me: *opens a controller file*
Controller: "I'm 8000 lines long and hell yeah I'll access the database and file system directly!"
undefined
architecture
solid