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
-
Magento also does things like that when parsing JSON (using the standard PHP JSON parser because would be way too easy)
It also does this the other way around which led to a bug where it would return a bool when the string was either true or false.... But a string stating "true" or "false was expected by all other functions... -
Yep I'm working on a project with this shit all over the place. They do this instead of using enums
-
@melezorus34 never heard of that. But AFAIK I wanted to do some additional stuff along with isfile, hence the wrapper, but didn't implement the additional stuff 😂
Related Rants
I found such a treasure today in the production code.
rant
production
code
true=true
c#