The brain is a hard thing to control, willpower is limited and the brain is highly efficient so when you block YouTube, it will find the next best thing.
Continuously audit yourself, like you already are (noticing that Discord is now an issue), and block more and more things that you find distracting. But also recognize that there will always be something that is more entertaining and you can always find a new website to waste time on. Block out as much as you can so that you're not fighting yourself and use a bit of self-control for the rest. Again, once your options are sit there and be bored or code that's when you see the greatest benefit.
Keep going, any progress that you make is good. Try to make a habit of opening your computer and starting with something productive even just for 10 minutes. Usually once you're engaged it's not that hard to keep going as you make progress. Getting started is the hard part and being bored helps you want to get started.
In general the less stimulation you have in your life the more interesting work will be. Depending on what resources you need for coding it might be easier to set up a whitelist for those couple of websites instead of a blacklist where you're trying to block everything distracting manually.
Continuously audit yourself, like you already are (noticing that Discord is now an issue), and block more and more things that you find distracting. But also recognize that there will always be something that is more entertaining and you can always find a new website to waste time on. Block out as much as you can so that you're not fighting yourself and use a bit of self-control for the rest. Again, once your options are sit there and be bored or code that's when you see the greatest benefit.
Keep going, any progress that you make is good. Try to make a habit of opening your computer and starting with something productive even just for 10 minutes. Usually once you're engaged it's not that hard to keep going as you make progress. Getting started is the hard part and being bored helps you want to get started.
In general the less stimulation you have in your life the more interesting work will be. Depending on what resources you need for coding it might be easier to set up a whitelist for those couple of websites instead of a blacklist where you're trying to block everything distracting manually.