Hacker News new | past | comments | ask | show | jobs | submit login

Yoda conditionals are still very popular in the PHP/Wordpress space. I never got used to using them personally.



They're required per the WordPress PHP Coding Standards and flagged by the WordPress rules for PHPLint. Lots of WordPress developers stick to those standards, so that's why you see it everywhere.


I'm aware of this.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: