Live data from Hacker News

How do I think like a programmer?

news.ycombinator.com

11–15 of 15 posts

Re: How do I think like a programmer?

#11
post #4

As others state, the best way to think like a programmer is to program, but also seeking a senior programmer as a mentor helps. Also, browsing code on sites like StackOverflow and Github but you kind of need to develop a quick sense of good vs bad code. There is a lot of both on those sites.

I have this issue with learning guitar right now. Finding a competent mentor, on recommendation, is surprisingly difficult.

I spend a lot of time on git reading code, shamelessly stealing function and seeing how they work in my code. I am glad that there is benefit to what I am doing. Thank you for the advice!

Re: How do I think like a programmer?

#12

You can only really think like a programmer by programming. Just keep at it, and you'll get better at it. I have heard that going through SICP can help you better wrap your head around functional decomposition and that sort of thing, but I haven't gone through yet it myself.

Thanks for the SICP recommendation! Great bed time reading.

I am slowly chiseling away at my 10k hours :)

Re: How do I think like a programmer?

#14

If you're trying to change someone else's code, this requires special skills in addition to thinking like a programmer. You have to be able to think like the other programmers who wrote the code, which is often different from the way that you think. Plus, you are unfamiliar with the code. These are additional difficulties, which is why the way programming is taught in schools, tutorials and books takes the point of v…

Thank you for the advice!
Post reply on HN