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

============================================================
FRIAM Applied Complexity Group listserv
Meets Fridays 9a-11:30 at cafe at St. John's College
lectures, archives, unsubscribe, maps at http://www.friam.org

Reply via email to