Ask HN: Is there a tool you use just for reading code?
21 points| kanonieer | 3 years ago
Is there an application you use to read code? And am I alone in feeling the need of such tool?
21 points| kanonieer | 3 years ago
Is there an application you use to read code? And am I alone in feeling the need of such tool?
blt|3 years ago
tgflynn|3 years ago
fxtentacle|3 years ago
pmontra|3 years ago
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.
OrderlyTiamat|3 years ago
But I guess having different tools for reading and writing is valuable in itself, too.
foobarandlmj|3 years ago
i also have a self hosted instance of this : https://elixir.bootlin.com/linux/latest/source
what you asked, comes across with code auditing as well, i wasn't surprised to know security researchers use sourcetrail as well.
hope your favourite language is supported.
neutered_knot|3 years ago
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 set simulates the call stack.
kingkongjaffa|3 years ago
MatthiasPortzel|3 years ago
If it’s a single file I want to check out, I have an alias for “nvim -R” which I use a lot. Vim’s syntax highlighting is very good, prevents me from making accidental changes, and is very convienent if I’m in the terminal already.
If I’m looking at code on GitHub then their code-search feature is very cool (cs.GitHub.com or by pressing cmd+shift+f on GitHub).
mellosouls|3 years ago
Print the relevant sections off to read and use pen to mark and note against them; I find it extremely useful (and less tiring on the eyes) for linking functions and clarifying code.
busterarm|3 years ago
1) 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.
water8|3 years ago
I don’t understand what is special about what you’re describing that isn’t done in hundred different IDEs
bitwize|3 years ago
f0e4c2f7|3 years ago
ilaksh|3 years ago