Why add comments to your code?

The more comments you put in your code, the more likely it is that your computer will understand your emotional state. 😊

@nixCraft

# wrote this when I had a bad day, please don't judge me, computer

@nixCraft If my computer would understand my emotional state it would refuse to boot.
@nixCraft # ToDo, because I do not want to think about corner cases :-P
@nixCraft
My computer is not yet old enough to be allowed to hear my excessive swearing.
@nixCraft I call comments and PR descriptions "love letters to your future self (and your future coworkers)"
@nixCraft That is not a result I want.
@nixCraft
Source code is for humans. It is there to document your intend. If your source code isn't communicating your intend then you're bad at coding regardless of how big or great the applications you're able to create are.
@nixCraft so my penguin can understand my emotions 😮
@Stomata @nixCraft which of course course begs some Lyle Lovett.... https://youtu.be/bNvKOzg03Es?si=gellMnjNEZhIyr4n
Lyle Lovett - Penguins

YouTube

@nixCraft

I'm not a coder, but I recall once seeing a t-shirt (or something) with the following:

"Real programmers don't comment their code.
It was hard to write...
... it should be hard to read."

Please don't throw anything at me!

@TimePencil @nixCraft That attitude only lasts until the first deadline in a larger project. If others or your later self cannot understand a program, then it is not getting finished...