Get rid of active distractions. That means disabling everything that produces notifications of any kind. Only failing build results should be a possible notification.
You can read your email 3 times a day, when you get in, when you got back from lunch, when you wrap up your days work.
Reduce time to verified work. Waiting for things like compilers or tests will cause you to wander off. Your builds and unit tests should be small. You should be able to verify your work without too much waiting.
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.
Get rid of active distractions. That means disabling everything that produces notifications of any kind. Only failing build results should be a possible notification.
You can read your email 3 times a day, when you get in, when you got back from lunch, when you wrap up your days work.
Reduce time to verified work. Waiting for things like compilers or tests will cause you to wander off. Your builds and unit tests should be small. You should be able to verify your work without too much waiting.