Earlier quoted context omitted.
I am surprised how few younger programmers use a debugger these days.
I'm not a younger programmer and I don't use a debugger. Tried it several times and found it counterproductive.
Ask HN: How do you familiarize yourself with a new codebase?
51–60 of 246 posts
Re: Ask HN: How do you familiarize yourself with a new codebase?
#52Earlier quoted context omitted.
I am surprised how few younger programmers use a debugger these days.
I'm not a younger programmer and I don't use a debugger. Tried it several times and found it counterproductive.
Re: Ask HN: How do you familiarize yourself with a new codebase?
#53A post from last year, "Strategies to quickly become productive in an unfamiliar codebase": https://news.ycombinator.com/item?id=8263402 My comment from that thread: I do the deep-dive. I start with a relatively high level interface point, such as an important function in a public API. Such functions and methods tend to accomplish easily understandable things. And by "important" I mean something that is fundamental t…
Re: Ask HN: How do you familiarize yourself with a new codebase?
#54I wrote some simple bash scripts around git which allow me to very quickly identify the most frequently-edited files, the most recently-edited files, the largest files, etc. https://github.com/gilesbowkett/rewind it's for assessing a project on day one, when you join, especially for "rescue mission" consulting. it's most useful for large projects. the idea is, you need to know as much as possible right away. so you r…
Re: Ask HN: How do you familiarize yourself with a new codebase?
#55Earlier quoted context omitted.
I am surprised how few younger programmers use a debugger these days.
I just use printf and other stuff to dump critical variable. I also use unit test a lot.
Re: Ask HN: How do you familiarize yourself with a new codebase?
#56This allows you to go down any code rabbit hole, figure stuff out, then get back to where you were. If you can't do those things it will take much longer to understand how things are interconnected.
Re: Ask HN: How do you familiarize yourself with a new codebase?
#57This allows you to go down any code rabbit hole, figure stuff out, then get back to where you were. If you can't do those things it will take much longer to understand how things are interconnected.
Re: Ask HN: How do you familiarize yourself with a new codebase?
#58Re: Ask HN: How do you familiarize yourself with a new codebase?
#59Re: Ask HN: How do you familiarize yourself with a new codebase?
#601. The Mile High View: A layered architectural diagram can be really helpful to know how the main concepts in a project are related to one another. 2. The Core: Try to figure out how the code works with regards to these main concepts. Box and arrow diagrams on paper work really well. 3. Key Use Cases: I would suggest tracing atleast one key use case for your app.