* Set the name of the instancied planet
Useful tips to help you create good habits as a web developer
Antoine Lechenault
6.9K28

I got a question here. Isn’t commenting supposed to explain why something exists, what was the reason it was added and what problems solve instead of literally typing the same thing that you can read in the comment below?

For real, in this example the method is named “set_name” and you say “sets a name”. Well, obviously.

What more meaningful comment would you place there if you were told that you have to?