Striving to become a master Go/Cloud developer; Father ๐จโ๐งโ๐ฆ; ๐ค/((Full Stack Web|Unity3D) + Developer)/g; Science supporter ๐ฉโ๐ฌ; https://coder.today
Modules, classes and functions should have good comments on when to use them and how.
As for the code, beside what other said I would add
Any code that does not look optimal or clean code, I would explain why it got to this state, probably is an optimization or something that new devs wouldnt know
code that doesnt look optimal but it is, knowing the compiler rules,
ex: extracting a formula into a function for readable code a junior may refactor with the call overhead in mind, but the compiler will do that "inline func"
Basically comments are for things that are not obvious from the code, from a junior or new dev in team perspective.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Modules, classes and functions should have good comments on when to use them and how.
As for the code, beside what other said I would add
ex: extracting a formula into a function for readable code a junior may refactor with the call overhead in mind, but the compiler will do that "inline func"
Basically comments are for things that are not obvious from the code, from a junior or new dev in team perspective.