Ask HN: Is there a tool you use just for reading code?
11–16 of 16 posts
Re: Ask HN: Is there a tool you use just for reading code?
#12Re: Ask HN: Is there a tool you use just for reading code?
#131) Run it. See what it does.
2) Read it. Identify main function(s).
3) Trace it. Use a debugger w/ breakpoints for this. See if you can follow how it runs.
4) Print it. Review interesting parts that you don't quite understand away form a computer.
Re: Ask HN: Is there a tool you use just for reading code?
#14Most of the times I use less in the terminal. Or vi, it's not easy to accidentally make a change and save it. Or the browser in GitHub, Bitbucket or what else hosts the project. I write code with emacs. I could turn a file in read only mode but I prefer not to mix what I'm working on with what I'm only reading.
But I guess having different tools for reading and writing is valuable in itself, too.
Re: Ask HN: Is there a tool you use just for reading code?
#15I do code review for legal cases on occasion. When I do, and when possible as sometimes the tools I can use are specified before I get the job, I like to use doxygen ( https://www.doxygen.nl/ ) to convert the code to html. It also creates call graphs. It is nice because it links to function and method definitions where it can, so as I go through the code I open each function I am teaching in a new tab - the open tab…