Search found 3 matches

by Longtooths
Tue Oct 30, 2007 12:42 pm
Forum: General Texas CHL Discussion
Topic: A close one!!!
Replies: 24
Views: 3253

Kalrog wrote:
Wildscar wrote:
Longtooths wrote:
NcongruNt wrote:nerd. ;-)

I prefer geek, but totally... :bigear:
I dont know what worse. You posting that or me being able to understand it.

And I'm not nerd or geek, Im' a Techie
If you were truly a geek you would have criticized the use of the nested if statements instead of going case and/or loop. This isn't a one time through code - it is event driven!


It was a one time scenario. Although, with a little work I could see where you could make it a perpetual loop. Of course there would be times you would need to exit loop, i.e. sleep etc. then of course you would need to address every variable, like no gun, asleep, no gun and naked, etc. But I digress….I feel my code was sufficient for the situation.
by Longtooths
Tue Oct 30, 2007 11:00 am
Forum: General Texas CHL Discussion
Topic: A close one!!!
Replies: 24
Views: 3253

NcongruNt wrote:nerd. ;-)

I prefer geek, but totally... :bigear:
by Longtooths
Tue Oct 30, 2007 10:05 am
Forum: General Texas CHL Discussion
Topic: A close one!!!
Replies: 24
Views: 3253

I'd like to think I would have done the following:

If [me] <> [Danger] THEN

Normal situational awareness

ELSE IF [Me] = [in danger] THEN

If [Danger] < [loosing life] THEN

If [loved one] = [present]

Use code word for them to
take cover behind me, or flee

ELSE IF [Me Alone] = TRUE THEN

Call Police
Take defensive posture

END IF


ELSE IF [Danger] >= [Loss of life] THEN

Pull Weapon

If [Time] >= [Enough to get some cover] THEN

Get to cover

ELSE

Shoot until threat is neutralized
Call Police FIRST!

END IF

END IF

END IF




I'm a code monkey and I was bored this morning, sue me! =)

Return to “A close one!!!”