Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> annotations - not just "comments"

What kind of annotations would not make sense as comments?



Annotations as what you scribble in the margin of an article or on a page in a book.

Comments are inline with the code. Annotations are aside, and serve both as visual anchors and as "aside" notes.



I'm thinking in terms of what I'd do if the code was printed out on paper.

http://imgur.com/KMCBMjA


The trouble with that is, how on earth do you get the annotations to apply across revisions? Or would you be OK with them only applying to a given revision and then ... what, disappearing? Or going into a 'floating bucket' of annotations for the entire file?


I'd be fine with them sticking to particular lines of code[0] and disappearing if those lines were changed. This is not something I'd like to commit into codebase, it's for exploration / preparing work.

--

[0] - "smart stick" can be implemented by remembering not just the line in file, but also the contents of that line and a (fuzzy) context.


Interesting. In these terms, it could probably just be a totally separate, general-purpose 'text file annotation' tool with git support (but not a requirement).


Sticky comment is actually another form of git blame, and will be available in future versions of GitPlex.


Upsource has sticky comments that survive code changes well.


Discussions about the code perhaps.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: