I agree. However, the question was more in the direction - how do you force them to code like this when they refuse to do on their own and you have to repeat it every day
Ah, i see. In this case, if you have an already-good-to-go architecture, then it's hard to break it with bad code style.
But without any architecture, it's really a hard task to force code style.
You need to find an agreement among devs to find out the good way anyway.
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.
I agree. However, the question was more in the direction - how do you force them to code like this when they refuse to do on their own and you have to repeat it every day
Ah, i see. In this case, if you have an already-good-to-go architecture, then it's hard to break it with bad code style.
But without any architecture, it's really a hard task to force code style.
You need to find an agreement among devs to find out the good way anyway.