3 ms·
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
by mywittyname 7y ago
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.