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
-
Exactly.
Who writes in php anymore.
This code could have been written in less lines in python or node. -
@babeman you are very young my friend.
It's sarcasm.
Unless your comment was also sarcasm, very nice. -
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 😉 -
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.
Related Rants
Someone got paid for this...
undefined
php
hardcoded
bullshit