Why so serious? [message #64054] |
Sat, 29 November 2008 20:45  |
jigga1206
Messages: 9 Registered: February 2008
|
Junior Member |
|
|
Usually this group is deep into vectorization, optimization, and so on…
except for David's occasional asides on tennis. However, does anybody
have any interesting/funny/random/ IDL code that makes your programs
more enjoyable to use? As a VERY simple example:
function stupid_error_message
output=['I do not like you',$
'This program has many bugs, stop whining!',$
'Are you an idiot?',$
'Why did you do that?',$
'Please stop crashing the program!']
return,output[fix(randomu(seed)*5)]
end
The output array is sanitized for general consumption, usually I’m a
bit more explicit…but you get the idea. I like the option of
generating random insults when users cause my stuff to break, though
typically it’s my fault.
Take care,
frank
|
|
|
|
Re: Why so serious? [message #64195 is a reply to message #64164] |
Sun, 07 December 2008 15:33  |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
On Dec 3, 2:02 pm, David Fanning <n...@dfanning.com> wrote:
> Andrew Cool writes:
>> If that's Moe, I'll go he.
>
>> I reckon it's Shemp!!
>
> Well, I never could keep those guys straight. It's the price
> you pay for going without television all those years. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
I bought some 3 Stooges DVDS's for my girls. They roll around laughing
their butts off.
There's just nothing like the Stooges these days - it's all anime-
style cartoon garbage
with precious little humour at any level.
Andrew
|
|
|