1204
Comenting code (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] Dunstabzugshaubitze@feddit.org 10 points 1 month ago

the "what" is interesting on interfaces or when you generate documentation with some tool like sphinx or javadoc.

the "why" is interesting when you are somewhere inside a class or function and do something in a "strange" way, to work around a quirk in the codebase or something like that, or when you employ optimizations that make the code harder to read or atleast less obvious why somethings are done.

this post was submitted on 28 Sep 2024
1204 points (99.1% liked)

Programmer Humor

32476 readers
770 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS