Live data from Hacker News

Ask HN: How do you discover features in unknown code bases?

news.ycombinator.com

1–10 of 26 posts

Ask HN: How do you discover features in unknown code bases?

#1
I'm realizing that one of the reasons why I don't do a lot of additional hobby programming is because I'm missing a fundamental skillset that I never developed (in a reliable way) over the years. I think I don't know how to discover features that I'm interested in, in code bases that I'm unfamiliar with. Example: In Chromium I want to find the algorithm that is building the DOM. I'm not sure if that is even part of the code base (https://github.com/chromium/chromium) How would you personally approach this problem?

Re: Ask HN: How do you discover features in unknown code bases?

#9
ripgrep

But to not leave a one word answer, start searching for a feature you know about and look around from where you find it. It might help to add a super small feature yourself - when it finally works, you’ll have some idea of how the code is structured and will be able to infer where other features would live if they were there. (That might take a bit more than one addition ;))

In chromium’s case, what you’re trying to do is more like reverse engineering… I’d start with a debugger.

Post reply on HN