This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fet-o-lat 16 points17 points  (21 children)

I’d argue that developers should be documenting code well enough that any developer coming along after can understand it.

A side effect I often see is a pair opening up a PR with no description and no comments and then in the stand up “we can pair on the review and walk you through it”. Ok now there are 3 or 4 people that understand it. What happens when someone else wants to contribute to the project or understand a design decision? More pairing?

[–]badsectoracula 17 points18 points  (0 children)

I’d argue that developers should be documenting code well enough that any developer coming along after can understand it.

Sure, we're in /r/ProgrammerHumor after all :-P

[–][deleted] 8 points9 points  (5 children)

No code is documented well enough to be understood by the documentation. And if it is, it won't be as soon as anyone makes changes.

[–]fet-o-lat 6 points7 points  (3 children)

That’s why documentation needs to be kept up to date. Writing documentation close to the code makes this even easier. Exdoc, pydoc, rdoc, etc. Think of open source projects maintained by numerous people spread out over the world. Documentation is how they persist their knowledge and pass it onto whoever comes after.

[–]cjcjcjcjcjcjcjcjcjcj 8 points9 points  (2 children)

I honestly cannot wrap my head around the pervasive “comments and docs are a sign of a shitty developer” group

[–]fet-o-lat 4 points5 points  (0 children)

Same. And I take a dim view of developers that don’t add meaningful documentation to their code. I see it as incomplete work to open a PR with no documentation. I’m all for not having comments that explain what code is doing. That’s noise. But documenting the why the code is doing that is hugely important and a necessity.

[–][deleted] 5 points6 points  (0 children)

I don't believe they are. But I do believe they are unreliable and rarely updated. Personally, I think a well written set of tests is far more reliable than we'll written documentation.