[TYPO3-core] RFC #16321: Bug: Numeric zero for representation of weekday sunday is not accepted
Jigal van Hemert
jigal at xs4all.nl
Thu Nov 11 22:36:59 CET 2010
Hi,
On 10-11-2010 1:55, Christian Kuhn wrote:
> Nitpick:
> + if (0 === strcmp($weekday, '0')) {
>
> Please swap variable and constant.
> This is a "Yoda condition": "If blue is the sky" :) [1]
In the comments of that site is actually a useful argument for Yoda
conditions:
'"Yoda Conditions" are a good way to avoid problems with unvolonteer
asignement in conditions.'
Okay, it's probably against CGL :-)
> [1] http://www.globalnerdy.com/2010/05/09/new-programming-jargon/
--
Kind regards / met vriendelijke groet,
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-team-core
mailing list