Striving to become a master Go/Cloud developer; Father ๐จโ๐งโ๐ฆ; ๐ค/((Full Stack Web|Unity3D) + Developer)/g; Science supporter ๐ฉโ๐ฌ; https://coder.today
Hopefully I don't develop in python, otherwise this would be considered "normal" :))
On a serious note, I usually follow this guidelines, I refactor when:
the code would not be understood by a junior, this is a good threshold overall
it cannot be tested
it will be impossible to find the error source in production (one-liners are the best example, they throw an error in the middle of the line, but there is no way to find out which operation in the pipeline failed)
"compiler wannabe optimization" some devs like to pre-optimize and do the same (or worst) than the compiler/runtime already does, sacrificing readability with no real gain
when the IDE/linter throws a warning, usually suggesting something better, usually he found an anti-pattern.
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.
Hopefully I don't develop in python, otherwise this would be considered "normal" :))
On a serious note, I usually follow this guidelines, I refactor when: