[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re(2): [MacPerl] & Usage and Misc. ?'s



>What is a 5GL language?
5th generation programming language

1GL - machine language -  usually binary code
010100101010
Native machine code - no translation needed

2GL - assembly language - symbolic representations
$234B $000E,   ADD 12,3    etc
Assembler language - assembles it into machine code

3GL - compiled language - C or Java  
if (term.syntax) { System.out.println("term syntax is :" + term.syntax); }
A compiler turns code into machine code - byte code for Java BTW

4GL - Something like SQL
EXTRACT ALL CUSTOMERS WHERE "PREVIOUS PURCHASES" TOTAL MORE THAN $1000
Code is interpreted on the machine side into something usable.

5GL - A natural programming language
<HYPOTHETICAL 5GL CODE>
Put a drop shadow on the car below the sign using printer specs for the HP,
and grab the financial data from Jim's Auto on the oracle site,
but don't include customers older than a few years when printing the mailing list.  
</HYPOTHETICAL 5GL CODE>

>Thats the key word, getting used to it...I have the IF...THEN...ELSE
>construct imbedded in my brain.  This is the first time I have seen this form.
 Like learning keyboard shortcuts - use it every time you can (within reason).
Note that if the statements to execute get any more complicated than
a few commands, the IF ELSIF ELSE structure is much easier to maintain.

## SIMPLE EXAMPLE
$x = 4;
$size = ($x <1000) ? 'smaller' : ' bigger';   
print $size; 

Hope this helps and have a nice day,
Jon

                                    \\\|///
                                    | ~ ~ |
                                   (- o o -)
 ===============================oOOOo=(_)=oOOOo=====
| Jon Lucenius - MultiMedia Director               |
| JCL Technologies                                 |
| E-mail: mailto:jonl@magpage.com                  |
| Office: 302-369-3016                             |
| Home  : 302-369-2989                             |
| Snail :17 Deer Run Drive                         |
|       :Newark DE 19702                   Oooo    |
 ==================================oooO====(  )=====
  "Quality Dynamic Technology."    (  )    ) /
      - Custom Progamming           \ (   (_/
       - Graphic Design              \_)
        - Interface Development

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch