Mike Krailo
Well-known member
- Local time
- Today, 14:42
- Joined
- Mar 28, 2020
- Messages
- 1,341
This was sparked by the following presentation given by Mark Rendle:
First up is IBM Cobol's Hello World code:
In contrast APL (A Programming Language)
And Conway's game of life in APL:
That's just totally unreadable and how would you even type it in? You had to have an APL keyboard of course.
Moving on to INTERCAL, which was designed to simply poke fun at other programming languages.
Notice the lines with PLEASE in them, if you didn't have enough of that word in your code, it would not compile due to programmer being too impolite. It's like a form of slavery to the compiler. To make matters worse, instead of GoTo statements you had to use Come From instead. The compiler was designed to drive up your CPU usage to 100% if you didn't add that last line "PLEASE GIVE UP" at the end.
Mark puts Visual Basic 3.0 on the list because at the time there was no object oriented coding in that version and the Data Access Layer was non-existent until VB4 came out.
The rest of the video shows Mark attempting to piece together an even worse programming language than INTERCAL. He called it BS. Have a look at it comment back here.
First up is IBM Cobol's Hello World code:
Code:
//COBUCLG JOB CLASS-A, MSGCLASSZA,
//HELOWRLD EXEC COBUCLG,PARM.COB='MAP,LIST,LET'
//COB.SYSIN DD *
001 IDENTIFICATION DIVISION.
002 PROGRAM-ID. 'HELLO'.
003 ENVIRONMENT DIVISION.
004 CONFIGURATION SECTION.
005 SOURCE-COMPUTER. IBM-360.
006 OBJECT-COMPUTER. IBM-360.
0065 SPECIAL-NAMES.
0066 CONSOLE IS CNSL.
007 DATA DIVISION.
908 WORKING-STORAGE SECTION.
009 77 HELLO-CONST PIC X(12) VALUE
075 PROCEDURE DIVISION.
090 OOO-DISPLAY.
100 DISPLAY HELLO-CONST UPON CNSL.
110 STOP RUN.
//LKED.SYSLIB DD DSNAME=SYS1.COBLIB,DISP=SHR
// DD DSNAME=SYS1.LINKLIB,DISP=SHR
//GO.SYSPRINT DD SYSOUT=A
//
In contrast APL (A Programming Language)
Code:
'Hello, World!'
And Conway's game of life in APL:
That's just totally unreadable and how would you even type it in? You had to have an APL keyboard of course.
Moving on to INTERCAL, which was designed to simply poke fun at other programming languages.
Notice the lines with PLEASE in them, if you didn't have enough of that word in your code, it would not compile due to programmer being too impolite. It's like a form of slavery to the compiler. To make matters worse, instead of GoTo statements you had to use Come From instead. The compiler was designed to drive up your CPU usage to 100% if you didn't add that last line "PLEASE GIVE UP" at the end.
Mark puts Visual Basic 3.0 on the list because at the time there was no object oriented coding in that version and the Data Access Layer was non-existent until VB4 came out.
The rest of the video shows Mark attempting to piece together an even worse programming language than INTERCAL. He called it BS. Have a look at it comment back here.