3 ms·
Absolutely amazing. One thing that struck my attention is how little comments there are in Linux at times. Consider this: https://github.com/0xAX/linux-inside
by d33 11y ago
Absolutely amazing.
One thing that struck my attention is how little comments there are in Linux at times. Consider this:
https://github.com/0xAX/linux-insides/blob/master/Initialization/linux-initialization-1.md#next-to-start_kernel https://github.com/0xAX/linux-insides/blob/master/Initializa...
https://github.com/torvalds/linux/blob/097f70b3c4d84ffccca15195bdfde3a37c0a7c0f/tools/lib/lockdep/uinclude/linux/kernel.h#L22 https://github.com/torvalds/linux/blob/097f70b3c4d84ffccca15...
Not a single line of commentary for something that definitely is not a trivial instruction.
I'm getting the impression that this kind of documentation should be built directly into Linux's source code, creating a document that is self-documenting and both human- and machine-readable.
On a separate note, it would be really nice if Gitlab supported something like ctags for browser-based code navigation...
- sytse 11y agoGreat idea to use ctags for code navigation, I created an issue https://gitlab.com/gitlab-org/gitlab-ee/issues/436 https://gitlab.com/gitlab-org/gitlab-ee/issues/436
- d33 11y agoActually I meant Github, but I'd love to see it in Gitlab as well - being able to explore open source projects with ctags using either would be absolutely awesome.