DEV Community

[Comment from a deleted post]
Collapse
 
dansyuqri profile image
Muhammad Syuqri

I usually comment on what a class or function does, so that anyone can know their functionality at a glance. Helps with my own understanding as well especially when the code base is huge. Commenting on certain lines that use an external library also helps me to understand the line of code within my own code base, without having to read the documentation online.