4 ms·
Like a lot of thirtysomethings I learned on a home microcomputer, and on those the order was: BASIC, then assembly when you found out that BASIC was too slow an
by bitwize 13y ago
Like a lot of thirtysomethings I learned on a home microcomputer, and on those the order was: BASIC, then assembly when you found out that BASIC was too slow and flabby, then a compiled language such as C or Pascal when you found out that writing anything serious in ASM was like trying to build a ship in a bottle with lentils, toothpicks, and glue.
Similarly the three core languages of a CS curriculum should be Python, followed by assembly, followed by C. The assembly background helps prep you for the gnarlier C concepts like pointers, so it's important to get that in there first before dropping someone into C. C is a systems language whose intended audience is people familiar with assembly but in need of something a bit easier to manage.
- dragonwriter 13y ago> Like a lot of thirtysomethings I learned on a home microcomputer, and on those the order was: BASIC, then assembly when you found out that BASIC was too slow and flabby, then a compiled language such as C or Pascal when you found out that writing anything serious in ASM was like trying to build a ship in a bottle with lentils, toothpicks, and glue. That's certainly one plausible order, though more of people I knew (about the same time, though I'm technically just out of the 30-something range) did BASIC followed by Pascal, followed by C, followed by Assembly. Rather than BASIC -> Assembly -> Pascal/C. > The assembly background helps prep you for the gnarlier C concepts like pointers, so it's important to get that in there first before dropping someone into C. I personally think its at least as easy to learn pointers in C (or even first someplace where they are more opaque and you don't engage directly in pointer arithmetic, like Go or, I think, Rust, or if you were me in the 1980s, Pascal -- and then C) and then learn Assembly than the other order. > C is a systems language whose intended audience is people familiar with assembly but in need of something a bit easier to manage. Sure, and when C was invented, that was probably a common route among people who were already programmers; but its a bridge that can be crossed in either the assembly-to-higher-level direction or vice-versa, and seems to me to work quite well either way.
- lttlrck 13y agoYes, with even a basic understanding of assembly all the pain of pointers disappears. I taught myself assembly from the output of Borland C because I needed more speed (for a platform game). I was hand-optimizing compiler output and turned out to be an amazing way to learn. > C is a systems language whose intended audience is people familiar with assembly but in need of something a bit easier to manage. A larger part of that is portability, which is a lot easier to manage.