[thelist] Coning conventions, pet peeves

erik mattheis gozz at gozz.com
Thu Apr 28 14:35:52 CDT 2016


>[1]: "Yoda Conditions" http://www.wikiwand.com/en/Yoda_conditions

A perfect name for it!

Thanks Jason and Volkan for explaining why some think they are doing
something useful. Complete BS - how would someone that actually uses Yoda
defend it? "Dude, yes! I TOTALLY need to prevent myself from making a
newbie mistake that nobody makes ever."


On Thu, Apr 28, 2016 at 2:19 PM, Volkan Özçelik <volkan.ozcelik at gmail.com>
wrote:

> > By putting the comparison the other way around - making sure that the
> thing to the left of the operator is not an lvalue - you make it harder to
> make this mistake.
>
> Yup that’s the reason.
>
> Rest assured, Arabs don’t read code right to left :)
>
> You can see [1] for a detailed discussion on the subject matter.
>
> [1]: "Yoda Conditions" http://www.wikiwand.com/en/Yoda_conditions
>
> HTH,
>
> Volkan.
>
> On Thu, Apr 28, 2016 at 11:33 AM Jason Handby <jason.handby at corestar.co.uk
> >
> wrote:
>
> > > By putting the comparison
> > > the other way around - making sure that the thing to the left of the
> > operator
> > > is not an lvalue - you make it harder to make this mistake.
> >
> > ("lvalue" just means something that can legitimately go on the left of an
> > assignment operator.)
> >
> > Jason
> >
> > --
> >
> > * * Please support the community that supports you.  * *
> > http://evolt.org/help_support_evolt/
> >
> > For unsubscribe and other options, including the Tip Harvester
> > and archives of thelist go to: http://lists.evolt.org
> > Workers of the Web, evolt !
> >
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



-- 
Erik Mattheis

http://www.flickr.com/gelk


More information about the thelist mailing list