News for hackers. Stuff that matters.
Re:Ask HN: Do you ever go back and admire a piece of code yo... by mywittyname on Friday May 08, 2020 @11:32AM (#23115882)
Especially when it comes to data structures. It's so helpful to see a comment with an example of the structure of a variable, especially because you won't have the same context when you come back to it in a few months.

I know some people don't feel that way, because I've been dinged for it in code reviews as something that should be covered in unit tests. But I think digging through unit tests to glean the structure of an object adds a lot of overhead.

There are no comments on this comment yet.