46
Rabb
8y

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!"

Comments
  • 4
    Ayy lmao, I just started to learn SOLID in college. ;)
  • 1
    @veslav Learn it well, it's very valuable! 😊
  • 3
    Sometimes my poos are solid too 😉
  • 4
    We "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.
  • 0
    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.
Add Comment