kingandy: (Wandering Blossom)
kingandy ([personal profile] kingandy) wrote2004-10-13 03:54 pm

Shit, sod, bugger

There are two functions in Coldfusion for searching through a list: ListContains and ListFind.  Their operation is identical, but they differ in one small but fundamental way.

ListFind tells you if the list contains your word as an element.
ListContains tells you if any element in the list contains your word.

This has just cost me half a day's work.

ADDITIONAL: The Sims 2 are one up on City Of Heroes, by releasing their Body Shop as a standalone program (free download, no less). So, be honest. Who thinks this looks anything like me? (Clothing and hair by [livejournal.com profile] anberu!)

[identity profile] kmazzy.livejournal.com 2004-10-13 08:04 am (UTC)(link)
*pets*

[identity profile] richc.livejournal.com 2004-10-13 08:16 am (UTC)(link)
The fundamental existence if lists makes me want to poke whoever wrote the Coldfusion spec in the eye with a pointy stick.
Tha sort of thing above is just trying to be to clever by half, a better way to do that sort of thing is with a simple iterator and regexp, or even recursion if you're feeling like it.

[identity profile] richc.livejournal.com 2004-10-13 08:17 am (UTC)(link)
Thats the language, not Andy, trying to be to clever by half.

[identity profile] stsquad.livejournal.com 2004-10-13 08:20 am (UTC)(link)
Recursion is overrated. There are some places where I've found it useful for example when I wrote a calculator program in my programming for Chemists class. However get it wrong and its an easy way to smash the stack or get something running of into infinity. Like I say Recurision is overrated. There are some places...

[identity profile] richc.livejournal.com 2004-10-13 09:03 am (UTC)(link)
True, but there are places where it is the only choice (XSLT for example).

[identity profile] redhillian.livejournal.com 2004-10-13 08:28 am (UTC)(link)
Everybody loves SimAndy!

[identity profile] ash1977law.livejournal.com 2004-10-13 08:41 am (UTC)(link)
But SimTrevor can do magical tricks.

Sim Andy

[identity profile] pkgem.livejournal.com 2004-10-13 09:59 am (UTC)(link)
Pretty good. Your hair needs to be longer though.

[identity profile] kermix.livejournal.com 2004-10-13 10:42 am (UTC)(link)
The long-hair options for guys in that app are sorely lacking, unfortunately.

[identity profile] samharber.livejournal.com 2004-10-13 12:34 pm (UTC)(link)
hair is a bit too dark as well.

True

[identity profile] pkgem.livejournal.com 2004-10-14 02:52 am (UTC)(link)
You can download new hairstyles from various web-sites though.

[identity profile] ed-fortune.livejournal.com 2004-10-13 01:35 pm (UTC)(link)
Longer hair, cuter face required, most certainly

[identity profile] wulfboy.livejournal.com 2004-10-13 03:06 pm (UTC)(link)
I note that SimAndy seems to spend more time at the gym than RealAndy, and I could see him as a leading man in a Hollywood blockbuster. Which, with all the will in the world, is not true of RealAndy.

Spare us these falsified pixellated imposters! RealAndy remains the only true Andy for me. It's the taste of the new generation.

[identity profile] pax-draconis.livejournal.com 2004-10-13 03:09 pm (UTC)(link)
SimAndy appears to have taken on the shape of the test-tube from which he was clearly born.

I am in concurrence with m'learned friend above - some people just aren't pixellatable.