Calendar - for "REAL" programmers: Difference between revisions
Content added Content deleted
m (NevilleDNZ moved page Calendar - for "real" programmers to Calendar - for "REAL" programmers: Somehow - in concordance to the tongue-in-cheek nature of this page - a page rename seems like a REAL good idea.) |
m (→{{header|REXX}}: reduced interline spacing.) |
||
Line 1,007: | Line 1,007: | ||
This is essentially the same REXX program as for the CALENDAR task, but written entirely in uppercase. Indeed, |
This is essentially the same REXX program as for the CALENDAR task, but written entirely in uppercase. Indeed, |
||
<br>it could be written without any Latin (or any language) letters of any kind for the REXX program's variables. |
<br>it could be written without any Latin (or any language) letters of any kind for the REXX program's variables. |
||
From the task's description, I took it to mean the program was to be in all uppercase, but the output was |
|||
<br>still supposed to look pretty (that is, partly in lowercase). Even so, on the (line) printers that were used |
<br>still supposed to look pretty (that is, partly in lowercase). Even so, on the (line) printers that were used |
||
<br>long ago, the printers (if not supporting lowercase), would print lowercase as uppercase (with the FOLD option). |
<br>long ago, the printers (if not supporting lowercase), would print lowercase as uppercase (with the FOLD option). |
||
The other REXX program made use of lowercase letters for determining the minimum length of any of the options |
|||
<br>(from the command line), and a few simple tricks were used to accomplish this. |
<br>(from the command line), and a few simple tricks were used to accomplish this. |
||
<br>[Note: the command line may also be all uppercase.] |
<br>[Note: the command line may also be all uppercase.] |
||
In any case, both versions of the programs' output are identical (but the second REXX version sure as heck looks |
|||
<br>like it was beat with a big ole ugly stick ─── and pardon the strong language). |
<br>like it was beat with a big ole ugly stick ─── and pardon the strong language). |
||
<lang rexx>/*REXX PROGRAM TO SHOW ANY YEAR'S (MONTHLY) CALENDAR (WITH/WITHOUT GRID)*/ |
<lang rexx>/*REXX PROGRAM TO SHOW ANY YEAR'S (MONTHLY) CALENDAR (WITH/WITHOUT GRID)*/ |