1178
Comenting code (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] Dunstabzugshaubitze@feddit.org 10 points 1 week 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
1178 points (99.2% liked)

Programmer Humor

32197 readers
599 users here now

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

Rules:

founded 5 years ago
MODERATORS