Coming Soon š At the beginning of April, youāll be
introduced to a brand-new GoComics! See more information here. Subscribers, check your
email for more details.
I loved that I didnāt fully recognize the language until Jason gave the punch line. Iām amazed by the newness of it (while fully aware this gag could have been done a dozen time before).
It is definitely not āclassicā FORTRAN (II, IV or 77), but the code snippet looks like it was copied from the Wikipedia section describing āFortran 90ā.
COBOL on punch cards. Iām impressed! I read the description of the class; didnāt understand the description; didnāt take the class. Now I wish I had, even if Iād have failed it miserably, ācuz I would have at least learned SOMEthing.
There are a lot of ālegacyā programs still out there that were written in Fortran 40 years ago. They have been patched and modified over the years with confusing or nonexistent comments, making it impractical to rewrite them from scratch in a modern language. So, they get modified as needed. Yes, people are still using Fortran.
We had a Fortran computer in high school. Our teacher said it was impossible to program it to play games. I told him I could make it play a game. He said if I could do that, he would give me an A for the class, so after thinking for a bit, I came up with a tic-tac-toe program based on 5 being the middle square, 1-4 being the corners and 6-9 the side squares. I started with āIf X = 5 then 2ā meaning if the first person put an X in the middle square, then it would put itās mark in square #2, a corner square. If X > 5 then 5 and if X < 5 then 5 meaning if the first person put an X in any other square, it would pick the middle square. etc. I got an A for the class and the program made it so that the computer would either win or tie. You could not beat the computer
Werenāt the Fortune Cookies that you got when you logged off UNIX generated by C rather than FORTRAN? (The original Adventure game was in fact written in FORTRAN, though.)
I never learned FORTRAN. I had COBOL, Pascal and BASIC classes in college. I always wanted to learn SNOBOL (yes, thatās a real programming language).
The code in the cookies seems way too BASIC. Even though Iām an old lady of 77, I know about computer languages. I still remember how to program in Basic (from the days when computers had no OS).
I had problems with LISP, because Iām careless with parenthesis.
Proper FORTRAN did indeed have a specific, punch-card-derived format, but many later versions (intended to be entered on terminals rather than card decks) were a bit more free-format. Still, what appears in the strip doesnāt look like the FORTRAN I remember from the early ā70s, when I was expected to use it to solve engineering problems.
By the way, another place where FORTRAN lives on is in the syntax for pretty much every scientific calculator out there (unless HP is still selling RPN calculators). Every now and then I get to sub a high-school physics class, and it makes me very nostalgic for my college days when I find the kids getting preposterous answers because they donāt understand operator precedence in FORTRAN mathematical expressions.
Heard of Fortran back in high school (class of ā82) along with COBOL, Pascal was a new language then. Programmed in Basic using Apple II computers and occasionally remotes using teletypes. One of my favorite basic programs:
10 print āI am a computer.ā20 for a = 1 to 430 print āNothing can goā40 for b = 1 to 350 print āwrongā60 next b70 next a80 end
Had no idea what it would do until we ran it. Hilarious on a teletype at 10 cps.
My first computer language was FORTRAN (yes, on punch cards). Wrote a limited battleship game (but as each āshipā was 1 square, it was really āguess 3 ordered pairs of numbersā). Good times. Long time ago.
I couldnāt afford the HP 35 when it came out in ā73 or ā74 (and anyway, I was pretty much done with the EE courses that required heavy number crunching, and into the CS courses that were all about logic), so I never bought one. Friend of mine found one of the programmable HP calculators at a garage sale a few years ago and gave it to me. Batteries had corroded and leaked, but those gold-plated contacts cleaned right up, and with a cordless-phone NiCd in place, it works just fine again (except for the card reader). I sometimes take it to the school when I teach physics, to loan to the kids who forgot their calculators. Or sometimes I take my slide ruleābought it in ā71, it still works and Iāve never had to put batteries in it!
Iāll answer some of the questions and refute some of the incorrect statements. I have used Fortran for nearly 40 years. I still use it nearly every day.
Fortran is a computer programming language that was originally designed in 1954. It is still very much in use today. The latest version is Fortran 2008, which was approved by the ISO in 2010. The modern versions of Fortran (Fortran 90, 95, 2003, and 2008) have many features of modern programming languages. Fortran 2003 and 2008 are fully object-oriented. Fortran 2008 has built-in parallel processing.
By official ruling of the ISO, the name of the language is a proper noun, i.e., it is spelled āFortranā, NOT āFORTRANā.
The program examples that Jason Fox wrote ARE proper standard Fortran. Jason Fox used the free-format style that was introduced in Fortran 90. Fortran has had lower-case syntax as a standard feature since Fortran 2003.
No, you donāt need to use specific columns for input or output any more. Fortran has had free-form list-directed reads and writes since the days of FORTRAN 77. In fact, the āprintā statements that Jason Fox is using use list-directed format.
I wrote Fortran programs back in the 1970s using punch cards. Back then, you wrote your comments on cards separate from the source code. Fortran did not have in-line comments in those days, just as it did not have free-format source form. Each card was a separate line of text, whether comment or source code.These days, of course, nobody uses punch cards. Modern editors and IDEs work just as well with modern Fortran as they do with other programming languages.
Templo S.U.D. over 10 years ago
Iām as confused as Peter. What the flip is a fortran?
bama1fan92 over 10 years ago
Fortran the scientific programming language.
Agent54 over 10 years ago
I learned Fortran on punch cards
Kev_a_Swing_Dancer Premium Member over 10 years ago
I loved that I didnāt fully recognize the language until Jason gave the punch line. Iām amazed by the newness of it (while fully aware this gag could have been done a dozen time before).
AKHenderson Premium Member over 10 years ago
Me too, on the IBM 370. Back when a hard disk drive was about the size of a washing machine.
Atanwat over 10 years ago
It is definitely not āclassicā FORTRAN (II, IV or 77), but the code snippet looks like it was copied from the Wikipedia section describing āFortran 90ā.
Quantum Leaper over 10 years ago
WATFIV, you donāt need any stinking STRINGS!
Aaberon over 10 years ago
COBOL on punch cards. Iām impressed! I read the description of the class; didnāt understand the description; didnāt take the class. Now I wish I had, even if Iād have failed it miserably, ācuz I would have at least learned SOMEthing.
Plumbob Wilson over 10 years ago
There are a lot of ālegacyā programs still out there that were written in Fortran 40 years ago. They have been patched and modified over the years with confusing or nonexistent comments, making it impractical to rewrite them from scratch in a modern language. So, they get modified as needed. Yes, people are still using Fortran.
Observer fo Irony over 10 years ago
Does this make Jason bi-lingual?
RavennaAl over 10 years ago
We had a Fortran computer in high school. Our teacher said it was impossible to program it to play games. I told him I could make it play a game. He said if I could do that, he would give me an A for the class, so after thinking for a bit, I came up with a tic-tac-toe program based on 5 being the middle square, 1-4 being the corners and 6-9 the side squares. I started with āIf X = 5 then 2ā meaning if the first person put an X in the middle square, then it would put itās mark in square #2, a corner square. If X > 5 then 5 and if X < 5 then 5 meaning if the first person put an X in any other square, it would pick the middle square. etc. I got an A for the class and the program made it so that the computer would either win or tie. You could not beat the computer
tripwire45 over 10 years ago
You canāt keep a good nerd down.
bryce.gear over 10 years ago
Thanks for the explanation. was clueless too. My idea of a punch card was the roster for the fights.
MeGoNow Premium Member over 10 years ago
FORTRAN cookies are sort of dry and not very sweet. Not as good as APL pie.
seismic-2 Premium Member over 10 years ago
Werenāt the Fortune Cookies that you got when you logged off UNIX generated by C rather than FORTRAN? (The original Adventure game was in fact written in FORTRAN, though.)
SharkNose over 10 years ago
I never learned FORTRAN. I had COBOL, Pascal and BASIC classes in college. I always wanted to learn SNOBOL (yes, thatās a real programming language).
vldazzle over 10 years ago
The code in the cookies seems way too BASIC. Even though Iām an old lady of 77, I know about computer languages. I still remember how to program in Basic (from the days when computers had no OS).
I had problems with LISP, because Iām careless with parenthesis.
ChessPirate over 10 years ago
I think Iāll Assembler my thoughts, C to a cup of Java, and go play an RPGā¦
jbmlaw01 over 10 years ago
At Vandy (early 1970s) we had a modified version āFortran Load and Goā that was a bit more forgiving than Fortran.
2252895 over 10 years ago
Learn something new every day here on Go Comics.
Doctor11 over 10 years ago
I donāt think eating those cookies would be a good idea, Pete.
puddleglum1066 over 10 years ago
Proper FORTRAN did indeed have a specific, punch-card-derived format, but many later versions (intended to be entered on terminals rather than card decks) were a bit more free-format. Still, what appears in the strip doesnāt look like the FORTRAN I remember from the early ā70s, when I was expected to use it to solve engineering problems.
puddleglum1066 over 10 years ago
By the way, another place where FORTRAN lives on is in the syntax for pretty much every scientific calculator out there (unless HP is still selling RPN calculators). Every now and then I get to sub a high-school physics class, and it makes me very nostalgic for my college days when I find the kids getting preposterous answers because they donāt understand operator precedence in FORTRAN mathematical expressions.
bfrg45 over 10 years ago
Lots of old programmers here today. I also learned Fortran on punch cards for an IBM 360. Then programmed in BASIC, COBOL, Pascal, and C. Fun days.
onespiceybbw over 10 years ago
This made me laugh. I remember those punch cards. After their purpose was served, they werenāt even useful as scratch paper.
BeBadenov Premium Member over 10 years ago
FWIW, FORTRAN is an acronym for āformula translationā
daphne343 over 10 years ago
Heard of Fortran back in high school (class of ā82) along with COBOL, Pascal was a new language then. Programmed in Basic using Apple II computers and occasionally remotes using teletypes. One of my favorite basic programs:
10 print āI am a computer.ā20 for a = 1 to 430 print āNothing can goā40 for b = 1 to 350 print āwrongā60 next b70 next a80 end
Had no idea what it would do until we ran it. Hilarious on a teletype at 10 cps.
1MadHat Premium Member over 10 years ago
Fortran == FORmula TRANslation.
Stephen Gilberg over 10 years ago
Itās gotta be better than a 4chan cookie.
neverenoughgold over 10 years ago
Too many geeks here! Itās just Greek to meā¦
mlvezie over 10 years ago
My first computer language was FORTRAN (yes, on punch cards). Wrote a limited battleship game (but as each āshipā was 1 square, it was really āguess 3 ordered pairs of numbersā). Good times. Long time ago.
BillWa over 10 years ago
FORTRAN like COBOL are computer programming languages from the 60ās and the 70ās, pretty much died out after ASCII
robtgordon over 10 years ago
Ahhh..my very first programming language on our universityās IBM System/360 back in 1969.
Dave Ferro over 10 years ago
I hated FORTRAN because every variable had to be formatted. :p
puddleglum1066 over 10 years ago
I couldnāt afford the HP 35 when it came out in ā73 or ā74 (and anyway, I was pretty much done with the EE courses that required heavy number crunching, and into the CS courses that were all about logic), so I never bought one. Friend of mine found one of the programmable HP calculators at a garage sale a few years ago and gave it to me. Batteries had corroded and leaked, but those gold-plated contacts cleaned right up, and with a cordless-phone NiCd in place, it works just fine again (except for the card reader). I sometimes take it to the school when I teach physics, to loan to the kids who forgot their calculators. Or sometimes I take my slide ruleābought it in ā71, it still works and Iāve never had to put batteries in it!
RobinHood2013 over 10 years ago
Am I the only one who thinks Jason Fox reminds me of Sheldon Cooper?
TIMH over 10 years ago
FORmula TRANslator.
Comic-Nut over 10 years ago
Classic pun. I remember programming in Fortran on punch cards in High school and early engineering school .
Craig Dedo over 10 years ago
Iāll answer some of the questions and refute some of the incorrect statements. I have used Fortran for nearly 40 years. I still use it nearly every day.
Fortran is a computer programming language that was originally designed in 1954. It is still very much in use today. The latest version is Fortran 2008, which was approved by the ISO in 2010. The modern versions of Fortran (Fortran 90, 95, 2003, and 2008) have many features of modern programming languages. Fortran 2003 and 2008 are fully object-oriented. Fortran 2008 has built-in parallel processing.
By official ruling of the ISO, the name of the language is a proper noun, i.e., it is spelled āFortranā, NOT āFORTRANā.
The program examples that Jason Fox wrote ARE proper standard Fortran. Jason Fox used the free-format style that was introduced in Fortran 90. Fortran has had lower-case syntax as a standard feature since Fortran 2003.
No, you donāt need to use specific columns for input or output any more. Fortran has had free-form list-directed reads and writes since the days of FORTRAN 77. In fact, the āprintā statements that Jason Fox is using use list-directed format.
macsare1 over 10 years ago
āThe wise coder uses comments.ā But how do you comment with punch cards?
I'm a korean over 10 years ago
What is Fortran?I wonderā¦
Craig Dedo over 10 years ago
I wrote Fortran programs back in the 1970s using punch cards. Back then, you wrote your comments on cards separate from the source code. Fortran did not have in-line comments in those days, just as it did not have free-format source form. Each card was a separate line of text, whether comment or source code.These days, of course, nobody uses punch cards. Modern editors and IDEs work just as well with modern Fortran as they do with other programming languages.
fomalhaut09 over 10 years ago
FORTRAN has changed a lot since I wrote in it.
Comiclover277 about 5 years ago
Whatās FORTRAN?