[FRIAM] div. zero bugs?

Giles Bowkett gilesb at gmail.com
Wed Oct 25 01:01:11 EDT 2006


About the only useful discovery I've made along these lines:

Never do this:

if @var == "Value"

Always do this:

if "Value" == @var

the reason is because, if you screw up and only put in one equals
sign, pretty much every language out there is prone to accidental
assignment-during-test bugs, but no languages that I'm aware of are
prone to accidental assigning-new-values-to-literals bugs.

For what it's worth...

-- 
Giles Bowkett
http://www.gilesgoatboy.org



More information about the Friam mailing list