[ prog / sol / mona ]

prog


How to comment

1 2019-10-06 07:47

The most important aspect of comments in code is to document the Why instead of the How. The How can be inferred from the code itself.

2 2019-10-06 12:07

I disagree vehemently with people that hat say ‘code should document itself’ and then proceed to write no comments anywhere and pretend like their shit don’t stink.

3 2019-10-06 14:57

The code is the only accurate description of what happens at runtime. Comment should give context or describe assumptions that the code makes about its environment. Nobody needs a comment telling that Request.getPath() returns the path of the request.

4 2019-10-06 15:00

niggers

5 2019-10-06 15:13

Sign posts and reminders to my future self when I revisit code weeks months years in the future.

6 2019-10-06 15:14

Marginalia for Clojure.

7 2020-05-22 02:28

Niggers

8


VIP:

do not edit these