Live data from Hacker News

How did you guys learn how to code?

news.ycombinator.com

1–10 of 29 posts

Re: How did you guys learn how to code?

#3
As a new physics graduate student I had only written small programs in BASIC. Since my research group used Fortran 77, I self-taught from the book "Fortran 77: With Numerical Methods for Engineers and Scientists" (1992) by D. M. Etter. Later I learned Python from some O'Reilly books.

Re: How did you guys learn how to code?

#4
My first exposure was probably Microsoft Frontpage at school in the 90s, and then TI-BASIC on my calculator. I distinctly remember asking my grade school teacher how I could make web pages at home, and he said I'd need to buy the expensive Frontpage software, so I probably wouldn't be able to do it. Hah.

Later, I got a LAMP stack running on a Atom Netbook. My first big "app" was a chat app in PHP which I learned from reading various tutorials and manual pages in a pre-GitHub world. I also made a micro webhosting platform with some .uni.cc domain that a couple online friends used.

Re: How did you guys learn how to code?

#7
In high school, I decided I wanted to try to learn to code, so I searched for "best programming language for beginners", and that told me I should give Python a try. Back then, Replit would let anyone start writing and running programs right away without making an account, so that's where I got my feet wet with writing code. Now I do it for a living.

The trick is to be humble enough to not hesitate to search online any time you don't know something. I would set myself manageable little goals for every program I wanted to write, then I would search online for any detail I was missing to make it happen. At my job now, the goals are set for me, but the process is otherwise the same.

Re: How did you guys learn how to code?

#9
I started out with random VB crap, then C on PIC, then Arduino, Python, vanilla JS, then reactive JS.

But I think I would have been better off starting at the highest level like most people do now. I'm sure the stuff I learned doing straight C helped me a lot somehow, but I didn't start learning anything I directly use now, until I started using high level tools and best practices.

I think I would start out with Git(Just learn VCS and use it from day 1), then Python (getting into pip, virtualenv, MyPy, etc as soon as possible), then maybe SvelteKit, to avoid spending so much time getting into ways of doing things that I never use anymore. I was writing little strings parsing utilities by hand in C and things like that, copying and pasting instead of using package management, putting significant effort into stuff that doesn't scale and then having to rewrite, and not learning about what tools are available because of probably laziness and task inertia(related to the "just use prints rather than set up an ide with a debugger" phenomena!).

Or, maybe starting with C really is better, because if I started higher level, I probably wouldn't have wanted to put much effort into the low level stuff, and that might have been an issue when encountering

Re: How did you guys learn how to code?

#10
TRS-80 CoCo BASIC and in high school formally educated with Turbo Pascal 5.5/6.0

Everything after - mostly "self" taught... As long as you count copious books written by others as "self"-taught... PHP, Java, C/C++, Python, Javascript.

Occasionally some of my friends would provide assistance when I needed help (they're busy people and I don't want to bother them much) - but in the end most of it was pounding code & failing ad nauseum.

That experience is the only real way to understand. At least for me, I need the experience, not just the theory. But the experience alone misses a lot of underpinning - so reading theory helps back up and solidify what I do know and help reason about things and why they are going wrong.

I dub the "Throw everything and see what works" : The Wacky Wallwalker Method.

I should note I have never been employed as a professional programmer and this is probably a good thing.

Post reply on HN