Re: option to have "calculator" in GUI and display conventional operators

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: option to have "calculator" in GUI and display conventional operators

Art Kendall
with rot13 the code does not compile.  The receiver can undo the rot13 to run the code and they has it in clear code.
Art Kendall
Social Research Consultants
On 10/23/2013 3:41 AM, Albert-Jan Roskam [via SPSSX Discussion] wrote:
     your example could be
         even worse by dropping out white space that is not
 needed for
         the machine to parse the text.


       do if(blah=blue).
       compute mynewvar=somemacrofunction a b c .
       else if(blah=green).
       compute mynewvar=anotherfunction d e f .
       else.
       compute mynewvar=-999.
       end if.

  =========> "sparse is better than dense!"

       In the olden days there actually a was
 a FORTRAN
         program UNPRETTY that did the opposite of PRETTY.

         The purpose of UNPRETTY was to generate code that
 would result
         in the same numerical results and formatting, but
 that would be
         more difficult to adapt or translate to another
 language.

  =========> In Python 2 you can use rot13 encoding to obfuscate code. This is legal, for instance:

 # -*- coding: rot13 -*-
qrs fbzrShap(*netf, **xjnetf):
    cevag("Uryyb jbeyq!")

fbzrShap(1, 2, 3)

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD



To start a new topic under SPSSX Discussion, email [hidden email]
To unsubscribe from SPSSX Discussion, click here.
NAML

Art Kendall
Social Research Consultants