I woke up around 5 am this morning and sat in front of my computer with a bit of annoyance in me. I knew that the problem I had left yesterday did not have a clear solution and the issue I had was not simple to identify.
I started rewriting functions, making utilities to draw the state of geometric shapes to try and understand what it was that I was not understanding. At the end of it, it boiled down to a simple inverted value. I felt no joy after I got it to work because the problem was me, not the implementation.
Now, I am making a dunce list to put on my computer monitor, that lists out the most common mistakes I make while I am programming. Try to attack the source of the issue instead of just focusing on the computer.
Make myself aware of bad habits and force a conscious effort to address them.