Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Sean Astin is the greatest BASIC programmer of our generation | Better HN
Sean Astin is the greatest BASIC programmer of our generation
(opens in new tab)
(specularrealms.com)
40 points
wunderbaba
5y ago
4 comments
Share
4 comments
default
newest
oldest
perl4ever
5y ago
I saw this headline and pictured him as a hobbit terminator, with BASIC code scrolling down one side of his field of view.
n4r9
5y ago
Does BASIC allow padded string formatting? If so, you only need the one loop.
szc
5y ago
No, but there are other tricks, such as prepending enough zeros and then taking the rightmost 4 characters from the string...
FOR I = 0 TO 9999 : A$ = RIGHT$("000"+STR$(I),4) : ... rest of the code : NEXT I
DaveExeter
5y ago
DIM FourDigitPassword INTEGER ?
j
/
k
navigate · click thread line to collapse