The Bride of the First House (bride) wrote,
The Bride of the First House

Friday One - Current Thought

weather: bright cloudy
outside: 17°C
mood: workie
On the inauguration of fridayfiver:

1. Describe one thought currently on your mind:

If 0% probability maps to a '0' rating and 1% through 100% is normalized over '1' to '9', then your algorithm should be: $SCL = 1 + ceiling(trunc($PROB)/11.11) and not "12.5" like your original code says.

Also, you should check for a percentage outside of the 0%-100% range (ie. -23%, 398369% and "blah%"). I'm thinking the alphanumeric will get converted to 0% anyway because the string to number conversion will fail, leaving you with '0', but please make sure. Thanks.

Okay, that's two thoughts. But I'm in the midst of talking to my Dev Guy. I haven't even run anything to test yet. This is just from code inspection. It's so easy to forget that when you're converting from cardinality to dimensionality, it's (y-x+1). I'm a bit worried about the alphanumeric though. Depending on the default return value on failure and not doing something specifically is dangerous.

My answers to all the other questions are boring. =P

Tags: open-ended surveys

  • Perfectionist

    weather : mainly sunny outside : 20.3°C mood : ... You are a perfectionist. This assessment comes up in survey…

  • Traffic Accidents

    weather : sunny outside : 22.1°C mood : ... This question seemed quite à propos, in light of multiple recent…

  • Flip-Flop Friday on Saturday

    weather : light rain outside : 11.6°C mood : avoidant Friday Fun: June 14, 2007 1. If, for one day, you could…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment