Comment Learn something new and *different* (Score 2) 516
So I can't relate to your situation, but what got me out of being bored with my project and in general with writing code was learning something entirely new. In my case, it was *finally* learning functional programming, and starting on an associated path to (re)learning some math concepts.
Whether that works for other people, I have no idea, but it did work for me, and made me enthusiastic again about simply writing code.