7 ms·
Excellent work and a fun read. I've got fond memories of loading programs from cassette tape on a Vic-20 in the early 80s (it took 10 minutes or so kids). I t
by mixmastamyk 9y ago
Excellent work and a fun read. I've got fond memories of loading programs from cassette tape on a Vic-20 in the early 80s (it took 10 minutes or so kids). I tried typing in a game from a magazine and was unsuccessful too--it never worked right, pre crc. Me and a few cousins had a ball though with a random sentence generator program. We filled all the data statements with all the bad words a group of 12 year olds could think up. Good times.
It was my first exposure to programming, and a bit too early perhaps. Other than an occasional session on an ancient TRS-80 in high school, I didn't do any real programming again until taking a Turbo Pascal course in the mid 90s in college.
- danieltillett 9y agoI have the opposite feeling. I used to write programs for the trash-80 with hundreds of variable all named $A, $B, $C...$AA, $BB. To top this off the inability to renumber lines meant that once you added 9 new lines you needed to solve the problem with a goto to a sub-routine ultimately ending up with spaghetti code of the worst kind. Of course not having a printer meant the only way you could understand the now totally tangled spaghetti code was to keep all of it in your youthful short-term memory. Having nobody you could ask or learn from just added to the toxic mix. Even now thirty years later the thought of programming like this makes me feel ill.
- kfkfkif 9y agoWe solved the line numbering issue with 100-increments
- danieltillett 9y agoI have a vague memory that there was a reason for not doing this - something about using more memory or hitting a ceiling of some sort. The major problem of course was not having anyone to tell you that this was a bad idea. I still remember trying to work out how to program in machine code by poking different values into memory. I had my own guide on what values to avoid and what values worked without having the slightest idea what I was doing.
- ams6110 9y agoI do recall there being a maximum limit on line numbers. I don't recall ever using a BASIC that couldn't renumber.
- bsder 9y agoLikely 65535. I can't imagine a computer in that era using more than 2 bytes for a line number.
- usernam 9y agoAbsolutely. BASIC on a Sharp 6000 pocket pc[1] for example was limited to (32k or) 64k lines of 256 characters each. Like in many other basic versions, there was no automatic renumbering. Discovered it the hard way. [1] https://duckduckgo.com/?q=sharp+pocket+pc&t=ffab&iar=images&iax=1&ia=images https://duckduckgo.com/?q=sharp+pocket+pc&t=ffab&iar=images&...
- laumars 9y agoI was never a big fan of Microsoft Basic. My prefered systems were BBC Basic (BBC Micro) and Locomotive BASIC (Amstrad CPC). Locomotive was larged based on BBC BASIC and both had a command called RENUM that would renumber your source for you. It was invaluable for smaller projects but I remember some of my larger projects I would have routines separated by thousands. eg 10 REM main routine 20 REM do stuff 1000 REM another routine 1010 REM do other stuff 2000 REM a 3rd routine Then have GOSUBs / GOTOs using the n*1000 as the entry point into that routine. RENUMing the source when you've got the aforementioned structure was not an option.
- tonyg 9y agoISTR that Locomotive's RENUM took optional arguments that let you renumber chunks of the program separately... yep! You could renumber starting from a given line number through the end of the program, so in principle you could do a whole-program RENUM and then restore the larger gaps to your GOSUBs: [1] [1] (what a horrible link) http://www.cpcwiki.eu/index.php/Locomotive_BASIC#RENUM_.5B.E2.80.B9newLine.E2.80.BA.5D.5B.2C.E2.80.B9oldLine.E2.80.BA_.7C_.2C.5B.E2.80.B9oldLine.E2.80.BA.5D.2C.E2.80.B9step.E2.80.BA.5D http://www.cpcwiki.eu/index.php/Locomotive_BASIC#RENUM_.5B.E...
- laumars 9y agoYeah but that was fiddly and scary when the only way to undo any mistakes was to reload your program from cassette.
- digi_owl 9y agoProgram on notebook first i guess?
- stevekemp 9y agoI had to do that when writing programs in z80 assembly language - then converted to HEX bytes for each instruction. It was always a pain because instruction-length varied and you had to account for the length when calculating the number of bytes to jump forwards/backwards. (I tended to prefer relative-jumps to absolute ones, but either way the same problem remained.)
- deleted 9y ago[deleted]
- cr0sh 9y agoI don't know what TRS-80 you used, but I do know that the Microsoft BASIC in the Color Computer had a re-number command (RENUM newline, startline, increment). It was actually a very sophisticated version of BASIC: http://www.colorcomputerarchive.com/coco/Documents/Manuals/Hardware/Color%20Computer%202%20Quick%20Reference%20Card%20(Tandy).pdf http://www.colorcomputerarchive.com/coco/Documents/Manuals/H... As a kid (and I still own them) I had a Color Computer 2 and 3 - I programmed a ton of things on them, which ultimately led me to where I am today as a software engineer.
- bsder 9y ago> I used to write programs for the trash-80 with hundreds of variable all named $A, $B, $C...$AA, $BB Ummm, don't feel bad, you actually needed to. Each character of those variable names takes up RAM.
- kbp 9y ago> Each character of those variable names takes up RAM. Not to mention that at least on the C64, only the first two characters are significant anyway, ie, 'abba', 'ab', and 'abcd' all refer to the same variable.
- stevekemp 9y agoI wrote a blog post recently about my early memories doing similar things on a ZX Spectrum. One thing I remember fondly is the books I checked out of the local library, which were full of listings. Scrolling down to the bottom of this page you can find them online these days: https://usborne.com/browse-books/features/computer-and-coding-books/ https://usborne.com/browse-books/features/computer-and-codin... Just seeing the covers is enough to take me back ..
- markatkinson 9y agoI wonder what I will be saying to people in twenty years time that will include the phrase: 'it took 10 minutes or so kids'? "We used to have to write our own programs, like actually use buttons to type characters. It took a year or so kids."
- JustSomeNobody 9y agoThe keyboard is an efficient way of getting a program from one's head to the computer, so I don't see that changing.
- onion2k 9y agoThe inefficiency lies is in translating the business requirements of an application to something the computer understands via your brain and code syntax. There are plenty of ways that process can be optimised.
- pjmorris 9y agoThey've been optimizing that process since the 1950's. My hunch is that until they've built something sufficiently autonomous to accept blame when something is broken, humans will still be coding.
- JustSomeNobody 9y agoUntil you also get a computer to write the business requirements, they will remain so nebulous that ONLY a human can translate them.
- JadeNB 9y ago> The keyboard is an efficient way of getting a program from one's head to the computer, so I don't see that changing. This seems an awful lot like saying, in (let's say) the 18th century, "the horse is an efficient way of getting from one place to another, so I don't see that changing." The keyboard seems efficient now, but it, or, to be certain, some current and apparently perfectly satisfactory technology, certainly won't do so after the next big innovation.