Bill is a pro grammer

Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev – 699 points –
95

You are viewing a single comment

Code should be self documenting.

But you should also comment it, things obvious to you aren't obvious to even future you.

General rule of thumb: Comments say why is it here, not what it does. Code itself should describe what it does.

But then you write code in the real world and find out that you have to write some ass backwards code every other day because of deadlines, backwards compatibility or whatever, and suddenly you realize that despite your best efforts, code cannot always be self documenting.

Source: me.