Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • How to mix different styles of programming on several languages? Commented May 7, 2015 at 19:29
  • Im sorry how is it relevant to my question? Im saying Im not going to use Yoda for WP development as recommended by WP and not sure if this is going to cause problems Commented May 7, 2015 at 19:33
  • 4
    Why would this cause problems? Code is code, conventions are just that: conventions. This question is simply polling for opinions. Commented May 7, 2015 at 19:36
  • In some cases there is really no definite right or wrong when it comes to programming practices, is there? Commented May 7, 2015 at 19:38
  • 2
    @ed-ta look at why yoda conditionals exist in php (because if($the_force = 42) is valid and likely a bug). Try writing that bug in Java: int theForce; if(theForce = 42) { ... } and see what you get. Then ask "why am I doing this in the first place?" Commented May 7, 2015 at 19:57