53
pajaja
7y

Someone got paid for this...

Comments
  • 9
  • 7
    Exactly.
    Who writes in php anymore.
    This code could have been written in less lines in python or node.
  • 25
    @treeroot It could've been written in less lines of PHP...
  • 5
    @babeman you are very young my friend.
    It's sarcasm.
    Unless your comment was also sarcasm, very nice.
  • 3
    @babeman don't worry. You will get used to it here.
    Also welcome to devRant.
  • 7
    I was looking at code and thought to myself why would you compare God to number... But then I read on and found out that is short for "godina" which in Croatian means "year" and laught my pants of 😂

    Lijep pozdrav iz Slovenije 😉
  • 2
    Actually it could have been auto generated by things like smarty if they used a loop.

    It decomposits a loop into separate statements which look bizarre and similar to what you posted. Ending up with each variable being checked with an if statement with a "gather than '>' number" case from the loop. Each within its own if statement.

    In case of smarty: JS, PHP and HTML can easily be mixed together. PHP and JS variables are mixed together frequently, causing this bizarre outcome if loops are used.
  • 0
    Are you sure?
  • 4
    I want to unsee this
  • 2
    This just hurts my eyes...
  • 0
    this is painful to watch for those who has refactoring compulsive disorder
Add Comment