Plus C++ in first year "programming for engineers" and assembly in 4th year robotics
Ask HN: How did you learn to code?
41–50 of 89 posts
Re: Ask HN: How did you learn to code?
#42Re: Ask HN: How did you learn to code?
#43Re: Ask HN: How did you learn to code?
#44A few years later, it wasn't exactly programming but I was able to learn a bit about assembly on Macs in the 90s with ResEdit.
Re: Ask HN: How did you learn to code?
#45Also, didn't have the cash to go buy games from the local computer store so this was the next best thing...
Re: Ask HN: How did you learn to code?
#46I wrote some surprisingly complex interfaces for online services in Excel, without having much of a clue what I was doing. I didn't understand variables so memory was handled by reading and writing to the spreadsheet - arbitrary cells would hold values, rows were my arrays. In hindsight this very visual way of representing memory was probably helpful to my learning.
Re: Ask HN: How did you learn to code?
#47I made an 8-bit balloon that floated on the screen. It was magical. It is still after decades.
Re: Ask HN: How did you learn to code?
#48I didn't know how arrays or linking/including worked (or that they existed), so it was one long file with each creature having its own function to determine their behaviour and their own health_creature_1, health_creature_2 and so on. I really started wondering if there was a better way after a while.
Re: Ask HN: How did you learn to code?
#49I started learning to modify the games I was inputting, and then to write my own simple games. Somewhere in there I also was learning to write DOS batch files to do simple tasks. I wrote a DOS menu system that let you choose which program you wanted to run, to make it easy for me or my siblings to run any of various games, plus "serious" programs like WordPerfect. My dad got me a subscription to Dr. Dobb's Journal and a magazine called DOS World. They had program listings in assembly that I also typed in and tried to modify, just doing super simple stuff like playing the Twilight Zone theme song on the PC Speaker. A bit later I got into text adventures and wrote a few of those using special-purpose languages. I also wrote some games in ZZT. (And oh yeah, another comment on here reminded me I wrote some silly "games" in the variant of basic on my TI calculator, stuff like a Mad Libs generator.)
At some point in high school I started using Python. I think it was Python 2.1. By that point the internet had gotten to the point where I could learn a lot by searching for stuff, and so then I kind of shifted into using web tutorials and newsgroups and forums and stuff, which continued until today. Along the way I played around with a few other languages, like Haskell, and got reasonably conversant with JavaScript, but Python remains "the" language for me.
So I was self-taught, at first relying on books and later on whatever I could scrounge from the internet. I've never taken an actual class in programming or computer science.
Games were a major factor in my early programming development, the other main line being small DOS utilities. The David Ahl books were foundational for me, and I really hope people starting out today can find something like that, something that makes them go "Wow, look at all the things that I can actually do just by taking this code that I don't understand and learning how to mess with it." The "Using BASIC" book was similarly key in that it got me to understand how a programming language had a syntax, data types, and so on. Even when I moved away from BASIC, I pretty easily understood how when I was reading a tutorial on Haskell or Python, it was in some sense telling me the same stuff that that book was telling me, although the languages were quite different.
Since then I've taught programming a few times and I'm very informed by that early experience, basically the idea that learning to program involves just jumping in and wrestling with stuff, exploring and experimenting.
Re: Ask HN: How did you learn to code?
#50I think the very first code I wrote was in QBasic, but the first _real_ code I wrote was in Visual Basic 6. I drew a row of dice and then a bunch of buttons and wrote a Yahtzee game (single player). It took me weeks and it was mostly a giant nested if statement. Good times.
Same order for me. Also DOS batch files if they count.