|
No, of course not. Assembler was supposed to be hard to read, nothing should make it easier!
I also didn't indent FORTRAN - but then it didn't lend itself to that.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
The FORTRAN I used back in the day had everything in specific columns. So yeah, no indentions.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
Lots of Fortran programmers never knew: In cols 7 to 72, all spaces were insignificant. You could write GOTO or GO TO, COMM ON and SUB ROUTINE.
Furthermore, no tokens were reserved. You could name a SUBROUTINE FUNCTION or SUBROUTINE, to be called as "CALL FUNCTION(x)" or "CALL SUBROUTINE(y)". You could have a REAL variable named INTGEGER or REAL, and write statements such as "IF INTEGER.L T.REAL GOT 0123"
The last Fortran I touched was a Fortran77 implementation. During the design discussions for Fortran77, with each proposed extension crazier than the other, one of the old gurus (Dijkstra?) remarked that "I do not know what programming languages will look like in year 2000, but they will be named Fortran!" When I stumbled across Fortran 2011, my immediate reaction was: "You were just so right, old Master!" I guess that Fortran of today both have significant spaces and reserved words. But I wouldn't be sure of it without checking the language specification.
|
|
|
|
|
trønderen wrote: no tokens were reserved. You could name a SUBROUTINE FUNCTION or SUBROUTINE, to be called as "CALL FUNCTION(x)" or "CALL SUBROUTINE(y)". You could have a REAL variable named INTGEGER or REAL, and write statements such as "IF INTEGER.L T.REAL GOT 0123" Oh barf.
Software Zen: delete this;
|
|
|
|
|
I also used Fortran77 in tech school. You're right, I don't recall them saying anything about spaces being ignored in those columns.
One of my cousins created (or co-created, I don't remember) PDE2D using Fortran. The latest Windows version uses v11, and the Linux and Mac version use various flavors of GNU GFortran.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
The last time I wrote assembly code was on an XT box (8088 processor) using edlin. I barely remember what I ate for dinner yesterday, much less code from 40 years ago. I do remember loving to code that close to the hardware.
And thanks for reminding me that I'm old as dirt.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
Never, always been a tab then the op code. Labels start in the first column.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Hmm. My last significant bit of assembly language was an OS/2 device driver written in Intel assembly language, flat memory model (yay!).
There were a few places in the driver that implemented algorithms I originally (pseudo)coded in C. Those places tended to use indentation that resembled the original C.
Indentation was not my practice throughout.
Software Zen: delete this;
|
|
|
|
|
Wordle 488 5/6
⬛⬛⬛⬛🟨
⬛⬛🟨⬛⬛
⬛🟨🟨🟨🟨
🟨🟩🟨🟩⬛
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 488 4/6
⬜⬜🟨🟨🟨
🟨⬜⬜⬜⬜
🟨🟨🟩🟨🟨
🟩🟩🟩🟩🟩
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Wordle 488 4/6
⬛⬛⬛⬛🟨
⬛🟨⬛🟨🟨
⬛🟩🟨🟨⬛
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 488 4/6
⬜⬜🟨⬜🟨
🟨🟨⬜🟨⬜
🟨🟨🟩🟨⬜
🟩🟩🟩🟩🟩
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Wordle 488 5/6
⬜🟨🟨🟨⬜
🟩⬜🟨🟨⬜
🟩🟩🟨⬜⬜
🟩🟩⬜🟩⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 488 3/6
⬜⬜⬜⬜🟨
⬜🟨⬜🟨🟨
🟩🟩🟩🟩🟩
I was lucky today!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: I was lucky today!
and I started with the other half of the palindrome!
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Ooo! 4 yellow and a green? Nice - I've not had that combo.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 488 5/6
🟨⬛⬛⬛⬛
⬛⬛🟨⬛⬛
⬛⬛⬛🟨⬛
⬛🟨🟨🟨🟨
🟩🟩🟩🟩🟩
Huh.
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Wordle 488 4/6*
⬜⬜⬜🟨🟨
🟨⬜⬜🟨🟨
🟩🟩🟨⬜⬜
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Wordle 488 2/6
⬜⬜🟨🟩⬜
🟩🟩🟩🟩🟩
Did in two
|
|
|
|
|
Wordle 488 4/6
⬜⬜🟨🟨⬜
⬜⬜🟨⬜🟨
🟨🟨🟩🟨⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 488 4/6*
⬜⬜🟨⬜⬜
⬜⬜🟨🟨🟨
🟨🟨🟩🟨⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Quick survey...
How many of you uses tabs vs spaces to indent your code?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Probably none. I expect everyone just chooses one or the other.
Edit: Oh, wait, maybe I did... When I wrote DCL, I used a TAB for the first indent and then SPACEs after that. Does that count?
|
|
|
|
|
I use the TAB key to insert SPACES.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|