comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Why so serious?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Why so serious? [message #64054] Sat, 29 November 2008 20:45 Go to previous message
jigga1206 is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Assigning Coordinates in NetCDF
Next Topic: creat #D array and anaylis it

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 22:59:19 PDT 2025

Total time taken to generate the page: 0.64123 seconds